···11+{ stdenv, fetchurl, unzip, makeWrapper, jre }:
22+33+stdenv.mkDerivation {
44+ name = "subgit-3.1.0";
55+66+ meta = {
77+ description = "A tool for a smooth, stress-free SVN to Git migration";
88+ 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.";
99+ homepage = http://subgit.com;
1010+ license = stdenv.lib.licenses.unfree;
1111+ platforms = stdenv.lib.platforms.all;
1212+ };
1313+1414+ buildInputs = [ unzip makeWrapper ];
1515+1616+ installPhase = ''
1717+ mkdir $out;
1818+ cp -r bin lib $out;
1919+ wrapProgram $out/bin/subgit --set JAVA_HOME ${jre};
2020+ '';
2121+2222+ src = fetchurl {
2323+ url = http://old.subgit.com/download/subgit-3.1.0.zip;
2424+ sha256 = "08qhpg6y2ziwplm0z1ghh1wfp607sw4hyb53a7qzfn759j5kcdrg";
2525+ };
2626+}