1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

Merge pull request #11934 from makefu/cvs2svn

cvs2svn: 2.0.1 -> 2.4.0
This commit is contained in:
Arseniy Seroka 2015-12-25 17:26:43 +03:00
commit 0b6f76a1d3

View file

@ -1,11 +1,11 @@
{stdenv, fetchurl, python, makeWrapper}:
{stdenv, lib, fetchurl, python, cvs, makeWrapper}:
stdenv.mkDerivation {
name = "cvs2svn-2.0.1";
stdenv.mkDerivation rec {
name = "cvs2svn-2.4.0";
src = fetchurl {
url = http://cvs2svn.tigris.org/files/documents/1462/39919/cvs2svn-2.0.1.tar.gz;
sha256 = "1pgbyxzgn22lnw3h5c2nd8z46pkk863jg3fgh9pqa1jihsx1cg1j";
url = "http://cvs2svn.tigris.org/files/documents/1462/49237/${name}.tar.gz";
sha256 = "05piyrcp81a1jgjm66xhq7h1sscx42ccjqaw30h40dxlwz1pyrx6";
};
buildInputs = [python makeWrapper];
@ -13,8 +13,11 @@ stdenv.mkDerivation {
buildPhase = "true";
installPhase = ''
python ./setup.py install --prefix=$out
wrapProgram $out/bin/cvs2svn \
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
for i in bzr svn git; do
wrapProgram $out/bin/cvs2$i \
--prefix PATH : "${lib.makeSearchPath "bin" [ cvs ]}" \
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
done
'';
/* !!! maybe we should absolutise the program names in
@ -23,5 +26,6 @@ stdenv.mkDerivation {
meta = {
description = "A tool to convert CVS repositories to Subversion repositories";
homepage = http://cvs2svn.tigris.org/;
maintainers = [ lib.maintainers.makefu ];
};
}