mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
c0e0b44964
and update source tarball URL
38 lines
1022 B
Nix
38 lines
1022 B
Nix
{ lib, fetchurl, makeWrapper
|
|
, pypy2Packages
|
|
, cvs, subversion, git, breezy
|
|
}:
|
|
|
|
pypy2Packages.buildPythonApplication rec {
|
|
pname = "cvs2svn";
|
|
version = "2.5.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mhagger/cvs2svn/releases/download/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "1ska0z15sjhyfi860rjazz9ya1gxbf5c0h8dfqwz88h7fccd22b4";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
checkInputs = [ subversion git breezy ];
|
|
|
|
checkPhase = "${pypy2Packages.python.interpreter} run-tests.py";
|
|
|
|
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 ]}"
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A tool to convert CVS repositories to Subversion repositories";
|
|
homepage = "https://github.com/mhagger/cvs2svn";
|
|
maintainers = [ maintainers.makefu ];
|
|
platforms = platforms.unix;
|
|
license = licenses.asl20;
|
|
};
|
|
}
|