1{
2 lib,
3 stdenv,
4 fetchurl,
5 unzip,
6 makeWrapper,
7 jre,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "subgit";
12 version = "3.3.18";
13
14 meta = {
15 description = "Tool for a smooth, stress-free SVN to Git migration";
16 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.";
17 homepage = "https://subgit.com";
18 license = lib.licenses.unfree;
19 platforms = lib.platforms.all;
20 };
21
22 nativeBuildInputs = [
23 unzip
24 makeWrapper
25 ];
26
27 installPhase = ''
28 mkdir $out;
29 cp -r bin lib $out;
30 wrapProgram $out/bin/subgit --set JAVA_HOME ${jre};
31 '';
32
33 src = fetchurl {
34 url = "https://subgit.com/download/subgit-${version}.zip";
35 sha256 = "sha256-u4lgbX62bhgv/419if+jykCVkuN5SJ4OBhqF2Nl9Qe4=";
36 };
37}