2008-01-18 14:28:41 +03:00
|
|
|
{stdenv, fetchurl, python, makeWrapper}:
|
2007-05-02 15:49:18 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-01-18 14:28:41 +03:00
|
|
|
name = "cvs2svn-2.0.1";
|
2007-05-02 15:49:18 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-01-18 14:28:41 +03:00
|
|
|
url = http://cvs2svn.tigris.org/files/documents/1462/39919/cvs2svn-2.0.1.tar.gz;
|
|
|
|
sha256 = "1pgbyxzgn22lnw3h5c2nd8z46pkk863jg3fgh9pqa1jihsx1cg1j";
|
2007-05-02 15:49:18 +04:00
|
|
|
};
|
|
|
|
|
2008-01-18 14:28:41 +03:00
|
|
|
buildInputs = [python makeWrapper];
|
2007-05-02 15:49:18 +04:00
|
|
|
|
|
|
|
buildPhase = "true";
|
2008-01-18 14:28:41 +03:00
|
|
|
installPhase = ''
|
2007-05-02 15:49:18 +04:00
|
|
|
python ./setup.py install --prefix=$out
|
2008-01-18 14:28:41 +03:00
|
|
|
wrapProgram $out/bin/cvs2svn \
|
|
|
|
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
|
|
|
|
'';
|
2007-05-02 15:49:18 +04:00
|
|
|
|
|
|
|
/* !!! maybe we should absolutise the program names in
|
|
|
|
$out/lib/python2.4/site-packages/cvs2svn_lib/config.py. */
|
2008-01-18 14:28:41 +03:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A tool to convert CVS repositories to Subversion repositories";
|
|
|
|
homepage = http://cvs2svn.tigris.org/;
|
|
|
|
};
|
|
|
|
}
|