nixpkgs-suyu/pkgs/applications/version-management/cvs-fast-export/default.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2015-08-26 03:53:56 +02:00
{stdenv, fetchurl, makeWrapper, flex, bison,
asciidoc, docbook_xml_dtd_45, docbook_xsl,
2015-08-26 03:53:56 +02:00
libxml2, libxslt,
python27, rcs, cvs, git,
coreutils, rsync}:
with stdenv; with lib;
mkDerivation rec {
name = "cvs-fast-export-${meta.version}";
meta = {
2020-05-25 13:22:14 +02:00
version = "1.55";
2015-08-26 03:53:56 +02:00
description = "Export an RCS or CVS history as a fast-import stream";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ dfoxfranke ];
2020-04-12 10:44:01 +02:00
homepage = "http://www.catb.org/esr/cvs-fast-export/";
2015-08-26 03:53:56 +02:00
platforms = platforms.all;
};
src = fetchurl {
2020-05-25 13:22:14 +02:00
url = "http://www.catb.org/~esr/cvs-fast-export/cvs-fast-export-1.55.tar.gz";
sha256 = "06y2myhhv2ap08bq7d7shq0b7lq6wgznwrpz6622xq66cxkf2n5g";
2015-08-26 03:53:56 +02:00
};
buildInputs = [
flex bison asciidoc docbook_xml_dtd_45 docbook_xsl libxml2 libxslt
2015-08-26 03:53:56 +02:00
python27 rcs cvs git makeWrapper
];
postPatch = "patchShebangs .";
2015-08-26 03:53:56 +02:00
preBuild = ''
makeFlagsArray=(
XML_CATALOG_FILES="${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml ${docbook_xsl}/xml/xsl/docbook/catalog.xml"
LIBS=""
2015-08-26 03:53:56 +02:00
prefix="$out"
)
'';
doCheck = true;
postInstall =
let
binpath = makeBinPath [ out rcs cvs git coreutils rsync ];
2015-08-26 03:53:56 +02:00
in ''
for prog in cvs-fast-export cvsconvert cvssync; do
wrapProgram $out/bin/$prog \
--prefix PATH : ${binpath}
done
''
;
}