2011-12-06 16:41:16 +01:00
|
|
|
{ stdenv, fetchgit, ruby, makeWrapper, git }:
|
2011-05-04 12:07:56 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-02-20 19:59:43 +01:00
|
|
|
name = "svn2git-2.1.0-20111206";
|
2011-05-04 12:07:56 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
2011-12-06 16:41:16 +01:00
|
|
|
url = https://github.com/nirvdrum/svn2git;
|
2012-02-20 19:59:43 +01:00
|
|
|
rev = "5cd8d4b509affb66eb2dad50d7298c52b3b0d848";
|
|
|
|
sha256 = "26aa17f68f605e958b623d803b4bd405e12d6c5d51056635873a2c59e4c7b9ca";
|
2011-05-04 12:07:56 +02:00
|
|
|
};
|
|
|
|
|
2011-12-06 16:41:16 +01:00
|
|
|
buildInputs = [ ruby makeWrapper ];
|
2011-05-04 12:07:56 +02:00
|
|
|
|
2011-12-06 16:41:16 +01:00
|
|
|
buildPhase = "true";
|
2011-05-04 12:07:56 +02:00
|
|
|
|
2011-12-06 16:41:16 +01:00
|
|
|
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
|
|
|
|
'';
|
2011-05-04 12:07:56 +02:00
|
|
|
}
|