2018-10-02 16:52:22 +03:00
|
|
|
{ lib, fetchurl, makeWrapper
|
2022-01-12 15:18:38 +03:00
|
|
|
, pypy2Packages
|
2020-04-19 11:48:42 +03:00
|
|
|
, cvs, subversion, git, breezy
|
2022-05-03 13:39:36 +03:00
|
|
|
, installShellFiles
|
2018-10-02 16:52:22 +03:00
|
|
|
}:
|
2007-05-02 15:49:18 +04:00
|
|
|
|
2022-01-12 15:18:38 +03:00
|
|
|
pypy2Packages.buildPythonApplication rec {
|
2019-08-31 14:41:23 +03:00
|
|
|
pname = "cvs2svn";
|
2018-10-02 16:52:22 +03:00
|
|
|
version = "2.5.0";
|
2007-05-02 15:49:18 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-02-05 22:14:09 +03:00
|
|
|
url = "https://github.com/mhagger/cvs2svn/releases/download/${version}/${pname}-${version}.tar.gz";
|
2018-10-02 16:52:22 +03:00
|
|
|
sha256 = "1ska0z15sjhyfi860rjazz9ya1gxbf5c0h8dfqwz88h7fccd22b4";
|
2007-05-02 15:49:18 +04:00
|
|
|
};
|
|
|
|
|
2022-05-03 13:39:36 +03:00
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
2007-05-02 15:49:18 +04:00
|
|
|
|
2020-04-19 11:48:42 +03:00
|
|
|
checkInputs = [ subversion git breezy ];
|
2018-10-02 16:52:22 +03:00
|
|
|
|
2022-01-12 17:46:30 +03:00
|
|
|
checkPhase = "${pypy2Packages.python.interpreter} run-tests.py";
|
2018-10-02 16:52:22 +03:00
|
|
|
|
|
|
|
doCheck = false; # Couldn't find node 'transaction...' in expected output tree
|
|
|
|
|
|
|
|
postInstall = ''
|
2015-12-24 17:43:47 +03:00
|
|
|
for i in bzr svn git; do
|
|
|
|
wrapProgram $out/bin/cvs2$i \
|
2018-10-02 16:52:22 +03:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ cvs ]}"
|
2022-05-03 13:39:36 +03:00
|
|
|
$out/bin/cvs2$i --man > csv2$i.1
|
|
|
|
installManPage csv2$i.1
|
2015-12-24 17:43:47 +03:00
|
|
|
done
|
2008-01-18 14:28:41 +03:00
|
|
|
'';
|
2007-05-02 15:49:18 +04:00
|
|
|
|
2018-10-02 16:52:22 +03:00
|
|
|
meta = with lib; {
|
2008-01-18 14:28:41 +03:00
|
|
|
description = "A tool to convert CVS repositories to Subversion repositories";
|
2022-02-05 22:14:09 +03:00
|
|
|
homepage = "https://github.com/mhagger/cvs2svn";
|
2022-05-03 13:41:46 +03:00
|
|
|
maintainers = with maintainers; [ makefu viraptor ];
|
2018-09-08 16:04:33 +03:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.asl20;
|
2008-01-18 14:28:41 +03:00
|
|
|
};
|
|
|
|
}
|