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