nixpkgs/pkgs/applications/version-management/git-and-tools/subgit/default.nix

27 lines
837 B
Nix
Raw Normal View History

2015-12-23 23:00:22 +00:00
{ stdenv, fetchurl, unzip, makeWrapper, jre }:
2017-04-01 02:37:40 +01:00
stdenv.mkDerivation rec {
name = "subgit-3.2.4";
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.";
homepage = http://subgit.com;
license = stdenv.lib.licenses.unfree;
platforms = stdenv.lib.platforms.all;
};
2017-04-01 02:37:40 +01: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 {
2017-04-01 02:37:40 +01:00
url = "http://subgit.com/download/${name}.zip";
sha256 = "13r6hi2zk46bs3j17anfc85kszlwliv2yc16qx834b3v4w68hajw";
2015-12-23 23:00:22 +00:00
};
2017-04-01 02:37:40 +01:00
}