a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, python, rcs, git, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "src";
|
|
version = "1.28";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.catb.org/~esr/src/${pname}-${version}.tar.gz";
|
|
sha256 = "1fkr5z3mlj13djz9w1sb644wc7r1fywz52qq97byw1yyw0bqyi7f";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ python rcs git ];
|
|
|
|
preConfigure = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/src \
|
|
--suffix PATH ":" "${rcs}/bin"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Simple single-file revision control";
|
|
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;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ calvertvl AndersonTorres ];
|
|
};
|
|
}
|