2021-01-27 13:21:31 +03:00
|
|
|
{lib, stdenv, fetchurl, makeWrapper, flex, bison,
|
2018-07-17 23:11:16 +03:00
|
|
|
asciidoc, docbook_xml_dtd_45, docbook_xsl,
|
2015-08-26 04:53:56 +03:00
|
|
|
libxml2, libxslt,
|
2020-11-01 21:31:36 +03:00
|
|
|
python3, rcs, cvs, git,
|
2015-08-26 04:53:56 +03:00
|
|
|
coreutils, rsync}:
|
|
|
|
with stdenv; with lib;
|
|
|
|
mkDerivation rec {
|
|
|
|
name = "cvs-fast-export-${meta.version}";
|
|
|
|
meta = {
|
2021-04-28 10:20:41 +03:00
|
|
|
version = "1.56";
|
2015-08-26 04:53:56 +03:00
|
|
|
description = "Export an RCS or CVS history as a fast-import stream";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ dfoxfranke ];
|
2020-04-12 11:44:01 +03:00
|
|
|
homepage = "http://www.catb.org/esr/cvs-fast-export/";
|
2015-08-26 04:53:56 +03:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-28 10:20:41 +03:00
|
|
|
url = "http://www.catb.org/~esr/cvs-fast-export/cvs-fast-export-1.56.tar.gz";
|
|
|
|
sha256 = "sha256-TB/m7kd91+PyAkGdFCCgeb9pQh0kacq0QuTZa8f9CxU=";
|
2015-08-26 04:53:56 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-07-17 23:11:16 +03:00
|
|
|
flex bison asciidoc docbook_xml_dtd_45 docbook_xsl libxml2 libxslt
|
2020-11-01 21:31:36 +03:00
|
|
|
python3 rcs cvs git makeWrapper
|
2015-08-26 04:53:56 +03:00
|
|
|
];
|
|
|
|
|
2015-08-26 22:18:06 +03:00
|
|
|
postPatch = "patchShebangs .";
|
|
|
|
|
2015-08-26 04:53:56 +03:00
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(
|
2018-07-17 23:11:16 +03:00
|
|
|
XML_CATALOG_FILES="${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml ${docbook_xsl}/xml/xsl/docbook/catalog.xml"
|
2015-08-29 03:54:45 +03:00
|
|
|
LIBS=""
|
2015-08-26 04:53:56 +03:00
|
|
|
prefix="$out"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
let
|
2016-04-13 15:53:51 +03:00
|
|
|
binpath = makeBinPath [ out rcs cvs git coreutils rsync ];
|
2015-08-26 04:53:56 +03:00
|
|
|
in ''
|
|
|
|
for prog in cvs-fast-export cvsconvert cvssync; do
|
|
|
|
wrapProgram $out/bin/$prog \
|
|
|
|
--prefix PATH : ${binpath}
|
|
|
|
done
|
|
|
|
''
|
|
|
|
;
|
|
|
|
}
|