depot/third_party/nixpkgs/pkgs/applications/version-management/subgit/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

27 lines
858 B
Nix

{ lib, stdenv, fetchurl, unzip, makeWrapper, jre }:
stdenv.mkDerivation rec {
pname = "subgit";
version = "3.3.16";
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.";
homepage = "https://subgit.com";
license = lib.licenses.unfree;
platforms = lib.platforms.all;
};
nativeBuildInputs = [ unzip makeWrapper ];
installPhase = ''
mkdir $out;
cp -r bin lib $out;
wrapProgram $out/bin/subgit --set JAVA_HOME ${jre};
'';
src = fetchurl {
url = "https://subgit.com/download/subgit-${version}.zip";
sha256 = "sha256-p7uBEG43N4Hed+8HYf3I9lQEvmYLV61oIyRrPHuGmUA=";
};
}