2017-03-19 21:27:49 -07:00
|
|
|
{ stdenv, fetchurl, python, rcs, git, makeWrapper }:
|
2014-11-21 13:12:33 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "src";
|
2020-02-27 05:43:09 -08:00
|
|
|
version = "1.28";
|
2014-11-21 13:12:33 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2019-05-13 06:37:27 -07: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
|
|
|
|
2019-05-13 06:37:27 -07:00
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
2014-11-21 13:12:33 -08:00
|
|
|
|
2017-03-19 21:27:49 -07: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.
|
|
|
|
'';
|
2019-05-13 06:37:27 -07:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|