2015-12-24 15:43:47 +01:00
|
|
|
{stdenv, lib, fetchurl, python, cvs, makeWrapper}:
|
2007-05-02 13:49:18 +02:00
|
|
|
|
2015-12-24 15:43:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cvs2svn-2.4.0";
|
2007-05-02 13:49:18 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-12-24 15:43:47 +01:00
|
|
|
url = "http://cvs2svn.tigris.org/files/documents/1462/49237/${name}.tar.gz";
|
|
|
|
sha256 = "05piyrcp81a1jgjm66xhq7h1sscx42ccjqaw30h40dxlwz1pyrx6";
|
2007-05-02 13:49:18 +02:00
|
|
|
};
|
|
|
|
|
2008-01-18 12:28:41 +01:00
|
|
|
buildInputs = [python makeWrapper];
|
2007-05-02 13:49:18 +02:00
|
|
|
|
|
|
|
buildPhase = "true";
|
2008-01-18 12:28:41 +01:00
|
|
|
installPhase = ''
|
2007-05-02 13:49:18 +02:00
|
|
|
python ./setup.py install --prefix=$out
|
2015-12-24 15:43:47 +01:00
|
|
|
for i in bzr svn git; do
|
|
|
|
wrapProgram $out/bin/cvs2$i \
|
|
|
|
--prefix PATH : "${lib.makeSearchPath "bin" [ cvs ]}" \
|
|
|
|
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
|
|
|
|
done
|
2008-01-18 12:28:41 +01:00
|
|
|
'';
|
2007-05-02 13:49:18 +02:00
|
|
|
|
|
|
|
/* !!! maybe we should absolutise the program names in
|
|
|
|
$out/lib/python2.4/site-packages/cvs2svn_lib/config.py. */
|
2008-01-18 12:28:41 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A tool to convert CVS repositories to Subversion repositories";
|
|
|
|
homepage = http://cvs2svn.tigris.org/;
|
2015-12-24 15:43:47 +01:00
|
|
|
maintainers = [ lib.maintainers.makefu ];
|
2008-01-18 12:28:41 +01:00
|
|
|
};
|
|
|
|
}
|