2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchurl, makeWrapper
|
2022-01-13 20:06:32 +00:00
|
|
|
, pypy2Packages
|
2020-05-29 06:06:01 +00:00
|
|
|
, cvs, subversion, git, breezy
|
2022-05-18 14:49:53 +00:00
|
|
|
, installShellFiles
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pypy2Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "cvs2svn";
|
|
|
|
version = "2.5.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-02-10 20:34:41 +00:00
|
|
|
url = "https://github.com/mhagger/cvs2svn/releases/download/${version}/${pname}-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1ska0z15sjhyfi860rjazz9ya1gxbf5c0h8dfqwz88h7fccd22b4";
|
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
checkInputs = [ subversion git breezy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
checkPhase = "${pypy2Packages.python.interpreter} run-tests.py";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false; # Couldn't find node 'transaction...' in expected output tree
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for i in bzr svn git; do
|
|
|
|
wrapProgram $out/bin/cvs2$i \
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ cvs ]}"
|
2022-05-18 14:49:53 +00:00
|
|
|
$out/bin/cvs2$i --man > csv2$i.1
|
|
|
|
installManPage csv2$i.1
|
2020-04-24 23:36:52 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to convert CVS repositories to Subversion repositories";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/mhagger/cvs2svn";
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ makefu viraptor ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|