2015-08-26 03:53:56 +02:00
|
|
|
{stdenv, fetchurl, makeWrapper, flex, bison,
|
2018-07-17 22:11:16 +02:00
|
|
|
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 = {
|
2019-04-30 16:33:51 +02:00
|
|
|
version = "1.48";
|
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 ];
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.catb.org/esr/cvs-fast-export/;
|
2015-08-26 03:53:56 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-30 16:33:51 +02:00
|
|
|
url = "http://www.catb.org/~esr/cvs-fast-export/cvs-fast-export-1.48.tar.gz";
|
|
|
|
sha256 = "16gw24y5x96mx6zby8cys0f03x1bqw4r7g1390qlpg75pbydqlf9";
|
2015-08-26 03:53:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-07-17 22:11:16 +02:00
|
|
|
flex bison asciidoc docbook_xml_dtd_45 docbook_xsl libxml2 libxslt
|
2015-08-26 03:53:56 +02:00
|
|
|
python27 rcs cvs git makeWrapper
|
|
|
|
];
|
|
|
|
|
2015-08-26 21:18:06 +02:00
|
|
|
postPatch = "patchShebangs .";
|
|
|
|
|
2015-08-26 03:53:56 +02:00
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(
|
2018-07-17 22:11:16 +02:00
|
|
|
XML_CATALOG_FILES="${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml ${docbook_xsl}/xml/xsl/docbook/catalog.xml"
|
2015-08-29 02:54:45 +02:00
|
|
|
LIBS=""
|
2015-08-26 03:53:56 +02:00
|
|
|
prefix="$out"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
let
|
2016-04-13 14:53:51 +02:00
|
|
|
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
|
|
|
|
''
|
|
|
|
;
|
|
|
|
}
|