2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "subgit";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.3.17";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool for a smooth, stress-free SVN to Git migration";
|
2020-04-24 23:36:52 +00:00
|
|
|
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.";
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://subgit.com";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.unfree;
|
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out;
|
|
|
|
cp -r bin lib $out;
|
|
|
|
wrapProgram $out/bin/subgit --set JAVA_HOME ${jre};
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://subgit.com/download/subgit-${version}.zip";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-u8YhaF4zOlDpEYd/0VUN8k4X8E1G4PB+UkJjBfQKkJY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|