mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 17:10:48 +00:00
c36c08e8ca
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cvs-fast-export/versions
51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
{stdenv, fetchurl, makeWrapper, flex, bison,
|
|
asciidoc, docbook_xml_dtd_45, docbook_xsl,
|
|
libxml2, libxslt,
|
|
python27, rcs, cvs, git,
|
|
coreutils, rsync}:
|
|
with stdenv; with lib;
|
|
mkDerivation rec {
|
|
name = "cvs-fast-export-${meta.version}";
|
|
meta = {
|
|
version = "1.45";
|
|
description = "Export an RCS or CVS history as a fast-import stream";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ dfoxfranke ];
|
|
homepage = http://www.catb.org/esr/cvs-fast-export/;
|
|
platforms = platforms.all;
|
|
};
|
|
|
|
src = fetchurl {
|
|
url = "http://www.catb.org/~esr/cvs-fast-export/cvs-fast-export-1.45.tar.gz";
|
|
sha256 = "19pxg6p0pcgyd2fbnh3wy1kazv6vcfi5lzc2whhdi1w9kj4r9c4z";
|
|
};
|
|
|
|
buildInputs = [
|
|
flex bison asciidoc docbook_xml_dtd_45 docbook_xsl libxml2 libxslt
|
|
python27 rcs cvs git makeWrapper
|
|
];
|
|
|
|
postPatch = "patchShebangs .";
|
|
|
|
preBuild = ''
|
|
makeFlagsArray=(
|
|
XML_CATALOG_FILES="${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml ${docbook_xsl}/xml/xsl/docbook/catalog.xml"
|
|
LIBS=""
|
|
prefix="$out"
|
|
)
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
postInstall =
|
|
let
|
|
binpath = makeBinPath [ out rcs cvs git coreutils rsync ];
|
|
in ''
|
|
for prog in cvs-fast-export cvsconvert cvssync; do
|
|
wrapProgram $out/bin/$prog \
|
|
--prefix PATH : ${binpath}
|
|
done
|
|
''
|
|
;
|
|
}
|