lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05-pre 38 lines 906 B view raw
1{ lib, stdenv, fetchFromGitHub, ruby, makeWrapper, git }: 2 3stdenv.mkDerivation rec { 4 pname = "svn2git"; 5 version = "2.4.0"; 6 7 src = fetchFromGitHub { 8 owner = "nirvdrum"; 9 repo = "svn2git"; 10 rev = "v${version}"; 11 sha256 = "sha256-w649l/WO68vYYxZOBKzI8XhGFkaSwWx/O3oVOtnGg6w="; 12 }; 13 14 nativeBuildInputs = [ ruby makeWrapper ]; 15 16 dontBuild = true; 17 18 installPhase = '' 19 mkdir -p $out 20 cp -r lib $out/ 21 22 mkdir -p $out/bin 23 substituteInPlace bin/svn2git --replace '/usr/bin/env ruby' ${ruby}/bin/ruby 24 cp bin/svn2git $out/bin/ 25 chmod +x $out/bin/svn2git 26 27 wrapProgram $out/bin/svn2git \ 28 --set RUBYLIB $out/lib \ 29 --prefix PATH : ${git}/bin 30 ''; 31 32 meta = { 33 homepage = "https://github.com/nirvdrum/svn2git"; 34 description = "Tool for importing Subversion repositories into git"; 35 license = lib.licenses.mit; 36 platforms = lib.platforms.unix; 37 }; 38}