nixpkgs/pkgs/applications/version-management/cvs2svn/default.nix

38 lines
970 B
Nix
Raw Normal View History

{ lib, fetchurl, makeWrapper
, python2Packages
, cvs, subversion, git, bazaar
}:
python2Packages.buildPythonApplication rec {
2019-08-31 13:41:23 +02:00
pname = "cvs2svn";
version = "2.5.0";
src = fetchurl {
2019-08-31 13:41:23 +02:00
url = "http://cvs2svn.tigris.org/files/documents/1462/49543/${pname}-${version}.tar.gz";
sha256 = "1ska0z15sjhyfi860rjazz9ya1gxbf5c0h8dfqwz88h7fccd22b4";
};
buildInputs = [ makeWrapper ];
checkInputs = [ subversion git bazaar ];
checkPhase = "python run-tests.py";
doCheck = false; # Couldn't find node 'transaction...' in expected output tree
postInstall = ''
2015-12-24 15:43:47 +01:00
for i in bzr svn git; do
wrapProgram $out/bin/cvs2$i \
--prefix PATH : "${lib.makeBinPath [ cvs ]}"
2015-12-24 15:43:47 +01:00
done
'';
meta = with lib; {
description = "A tool to convert CVS repositories to Subversion repositories";
homepage = http://cvs2svn.tigris.org/;
2018-09-08 15:04:33 +02:00
maintainers = [ maintainers.makefu ];
platforms = platforms.unix;
license = licenses.asl20;
};
}