mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
21f17d69f6
Build-tested on x86_64 Linux & Mac.
33 lines
958 B
Nix
33 lines
958 B
Nix
{stdenv, lib, fetchurl, python, cvs, makeWrapper}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cvs2svn-2.4.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://cvs2svn.tigris.org/files/documents/1462/49237/${name}.tar.gz";
|
|
sha256 = "05piyrcp81a1jgjm66xhq7h1sscx42ccjqaw30h40dxlwz1pyrx6";
|
|
};
|
|
|
|
buildInputs = [python makeWrapper];
|
|
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
python ./setup.py install --prefix=$out
|
|
for i in bzr svn git; do
|
|
wrapProgram $out/bin/cvs2$i \
|
|
--prefix PATH : "${lib.makeBinPath [ cvs ]}" \
|
|
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
|
|
done
|
|
'';
|
|
|
|
/* !!! maybe we should absolutise the program names in
|
|
$out/lib/python2.4/site-packages/cvs2svn_lib/config.py. */
|
|
|
|
meta = {
|
|
description = "A tool to convert CVS repositories to Subversion repositories";
|
|
homepage = http://cvs2svn.tigris.org/;
|
|
maintainers = [ lib.maintainers.makefu ];
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|