2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, makeWrapper, jre }:
|
2015-12-23 23:00:22 +00:00
|
|
|
|
2017-04-01 01:37:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 13:50:48 +00:00
|
|
|
pname = "subgit";
|
2022-08-02 03:33:35 +00:00
|
|
|
version = "3.3.15";
|
2015-12-23 23:00:22 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A tool for a smooth, stress-free SVN to Git migration";
|
|
|
|
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 15:53:12 +00:00
|
|
|
homepage = "https://subgit.com";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.unfree;
|
|
|
|
platforms = lib.platforms.all;
|
2015-12-23 23:00:22 +00:00
|
|
|
};
|
|
|
|
|
2017-04-01 01:37:40 +00:00
|
|
|
nativeBuildInputs = [ unzip makeWrapper ];
|
2015-12-23 23:00:22 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out;
|
|
|
|
cp -r bin lib $out;
|
|
|
|
wrapProgram $out/bin/subgit --set JAVA_HOME ${jre};
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-07 13:50:48 +00:00
|
|
|
url = "https://subgit.com/download/subgit-${version}.zip";
|
2022-08-02 03:33:35 +00:00
|
|
|
sha256 = "sha256-2/J/d4GrlLXR/7QBxgIMepzP+xxkeLvrCBwLl7Ke8wI=";
|
2015-12-23 23:00:22 +00:00
|
|
|
};
|
2017-04-01 01:37:40 +00:00
|
|
|
}
|