1 { lib, stdenv, fetchurl, makeWrapper, asciidoc, docbook_xml_dtd_45, docbook_xsl
2 , coreutils, cvs, diffutils, findutils, git, python3, rsync
5 stdenv.mkDerivation rec {
6 pname = "cvs-fast-export";
10 url = "http://www.catb.org/~esr/cvs-fast-export/cvs-fast-export-${version}.tar.gz";
11 sha256 = "sha256-YZF2QebWbvn/N9pLpccudZsFHzocJp/3M0Gx9p7fQ5Y=";
15 nativeBuildInputs = [ makeWrapper asciidoc ];
16 buildInputs = [ python3 ];
24 XML_CATALOG_FILES="${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml ${docbook_xsl}/xml/xsl/docbook/catalog.xml"
30 env = lib.optionalAttrs stdenv.cc.isClang {
31 NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
35 wrapProgram $out/bin/cvssync --prefix PATH : ${lib.makeBinPath [ rsync ]}
36 wrapProgram $out/bin/cvsconvert --prefix PATH : $out/bin:${lib.makeBinPath [
37 coreutils cvs diffutils findutils git
42 description = "Export an RCS or CVS history as a fast-import stream";
43 license = licenses.gpl2Plus;
44 maintainers = with maintainers; [ dfoxfranke ];
45 homepage = "http://www.catb.org/esr/cvs-fast-export/";
46 platforms = platforms.unix;