e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
65 lines
1.4 KiB
Nix
65 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, asciidoc
|
|
, fetchFromGitLab
|
|
, git
|
|
, makeWrapper
|
|
, python3
|
|
, rcs
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "src";
|
|
version = "1.33";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "esr";
|
|
repo = "src";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-xyKJcM9dWsFGhe+ISR6S1f67jkYlS9heZe0TFXY8DgQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
asciidoc
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
git
|
|
python3
|
|
rcs
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
preConfigure = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
makeFlags = [
|
|
"prefix=${placeholder "out"}"
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/src \
|
|
--suffix PATH ":" "${rcs}/bin"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.catb.org/esr/src/";
|
|
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.
|
|
'';
|
|
changelog = "https://gitlab.com/esr/src/-/raw/${finalAttrs.version}/NEWS.adoc";
|
|
license = licenses.bsd2;
|
|
mainProgram = "src";
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
inherit (python3.meta) platforms;
|
|
};
|
|
})
|