forked from mirrors/nixpkgs
887295fd2d
@the-kenny did a good job in the past and is set as maintainer in many package, however since 2017-2018 he stopped contributing. To create less confusion in pull requests when people try to request his feedback, I removed him as maintainer from all packages.
40 lines
923 B
Nix
40 lines
923 B
Nix
{ stdenv, fetchurl, ruby, makeWrapper, git }:
|
|
|
|
let
|
|
version = "2.4.0";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "svn2git";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/nirvdrum/svn2git/archive/v${version}.tar.gz";
|
|
sha256 = "0ly2vrv6q31n0xhciwb7a1ilr5c6ndyi3bg81yfp4axiypps7l41";
|
|
};
|
|
|
|
buildInputs = [ ruby makeWrapper ];
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -r lib $out/
|
|
|
|
mkdir -p $out/bin
|
|
substituteInPlace bin/svn2git --replace '/usr/bin/env ruby' ${ruby}/bin/ruby
|
|
cp bin/svn2git $out/bin/
|
|
chmod +x $out/bin/svn2git
|
|
|
|
wrapProgram $out/bin/svn2git \
|
|
--set RUBYLIB $out/lib \
|
|
--prefix PATH : ${git}/bin
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/nirvdrum/svn2git";
|
|
description = "Tool for importing Subversion repositories into git";
|
|
license = stdenv.lib.licenses.mit;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|