nixpkgs/pkgs/applications/version-management/src/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, python, rcs, git, makeWrapper }:
2014-11-21 13:12:33 -08:00
stdenv.mkDerivation rec {
pname = "src";
2020-02-27 05:43:09 -08:00
version = "1.28";
2014-11-21 13:12:33 -08:00
src = fetchurl {
url = "http://www.catb.org/~esr/src/${pname}-${version}.tar.gz";
2020-02-27 05:43:09 -08:00
sha256 = "1fkr5z3mlj13djz9w1sb644wc7r1fywz52qq97byw1yyw0bqyi7f";
2014-11-21 13:12:33 -08:00
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ python rcs git ];
2014-11-21 13:12:33 -08:00
2016-06-28 07:25:15 -07:00
preConfigure = ''
patchShebangs .
'';
2014-11-21 13:12:33 -08:00
makeFlags = [ "prefix=${placeholder "out"}" ];
2014-11-21 13:12:33 -08:00
postInstall = ''
wrapProgram $out/bin/src \
--suffix PATH ":" "${rcs}/bin"
'';
2017-03-19 21:25:50 -07:00
meta = with stdenv.lib; {
2014-11-21 13:12:33 -08:00
description = "Simple single-file revision control";
2018-03-18 18:38:06 -07:00
longDescription = ''
SRC, acronym of Simple Revision Control, is RCS/SCCS reloaded with a
modern UI, designed to manage single-file solo projects kept more than one
to a directory. Use it for FAQs, ~/bin directories, config files, and the
like. Features integer sequential revision numbers, a command set that
will seem familiar to Subversion/Git/hg users, and no binary blobs
anywhere.
'';
homepage = "http://www.catb.org/esr/src/";
changelog = "https://gitlab.com/esr/src/raw/${version}/NEWS";
license = licenses.bsd2;
2017-03-19 21:25:50 -07:00
platforms = platforms.all;
2018-03-18 18:38:06 -07:00
maintainers = with maintainers; [ calvertvl AndersonTorres ];
2014-11-21 13:12:33 -08:00
};
}