depot/third_party/nixpkgs/pkgs/applications/version-management/git-and-tools/subgit/default.nix
Default email 07b8fe0546 Project import generated by Copybara.
GitOrigin-RevId: 916ee862e87ac5ee2439f2fb7856386b4dc906ae
2021-03-12 08:09:13 +01:00

26 lines
831 B
Nix

{ lib, stdenv, fetchurl, unzip, makeWrapper, jre }:
stdenv.mkDerivation rec {
name = "subgit-3.3.11";
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 = "http://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/${name}.zip";
sha256 = "sha256-ltTpmXPCIGTmVDxKc6oelMEzQWXRbIf0NESzRugaXo0=";
};
}