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