1{ stdenv, fetchurl, unzip, makeWrapper, jre }: 2 3stdenv.mkDerivation rec { 4 name = "subgit-3.2.4"; 5 6 meta = { 7 description = "A tool for a smooth, stress-free SVN to Git migration"; 8 longDescription = "Create writable Git mirror of a local or remote Subversion repository and use both Subversion and Git as long as you like. You may also do a fast one-time import from Subversion to Git."; 9 homepage = http://subgit.com; 10 license = stdenv.lib.licenses.unfree; 11 platforms = stdenv.lib.platforms.all; 12 }; 13 14 nativeBuildInputs = [ unzip makeWrapper ]; 15 16 installPhase = '' 17 mkdir $out; 18 cp -r bin lib $out; 19 wrapProgram $out/bin/subgit --set JAVA_HOME ${jre}; 20 ''; 21 22 src = fetchurl { 23 url = "http://subgit.com/download/${name}.zip"; 24 sha256 = "13r6hi2zk46bs3j17anfc85kszlwliv2yc16qx834b3v4w68hajw"; 25 }; 26}