3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/cvs2svn/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, fetchurl, makeWrapper
2022-01-12 12:18:38 +00:00
, pypy2Packages
2020-04-19 09:48:42 +01:00
, cvs, subversion, git, breezy
2022-05-03 11:39:36 +01:00
, installShellFiles
}:
2022-01-12 12:18:38 +00:00
pypy2Packages.buildPythonApplication rec {
2019-08-31 12:41:23 +01:00
pname = "cvs2svn";
version = "2.5.0";
src = fetchurl {
url = "https://github.com/mhagger/cvs2svn/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "1ska0z15sjhyfi860rjazz9ya1gxbf5c0h8dfqwz88h7fccd22b4";
};
2022-05-03 11:39:36 +01:00
nativeBuildInputs = [ makeWrapper installShellFiles ];
2020-04-19 09:48:42 +01:00
checkInputs = [ subversion git breezy ];
checkPhase = "${pypy2Packages.python.interpreter} 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 \
--prefix PATH : "${lib.makeBinPath [ cvs ]}"
2022-05-03 11:39:36 +01:00
$out/bin/cvs2$i --man > csv2$i.1
installManPage csv2$i.1
2015-12-24 14:43:47 +00:00
done
'';
meta = with lib; {
description = "A tool to convert CVS repositories to Subversion repositories";
homepage = "https://github.com/mhagger/cvs2svn";
2022-05-03 11:41:46 +01:00
maintainers = with maintainers; [ makefu viraptor ];
2018-09-08 14:04:33 +01:00
platforms = platforms.unix;
license = licenses.asl20;
};
}