3
0
Fork 0
forked from mirrors/nixpkgs

smartgithg: 17.1.4 -> 18.1.4 (#45250)

This commit is contained in:
baracoder 2018-08-21 20:51:54 +02:00 committed by xeji
parent 1816f09f00
commit 185cd8baa8

View file

@ -7,11 +7,11 @@
stdenv.mkDerivation rec {
name = "smartgithg-${version}";
version = "17_1_4";
version = "18_1_4";
src = fetchurl {
url = "https://www.syntevo.com/downloads/smartgit/smartgit-linux-${version}.tar.gz";
sha256 = "1x8s1mdxg7m3fy3izgnb1smrn4ng3q31x0sqnjlchkb5vx7gp5rh";
sha256 = "18gyfcs5g7xq8fqnn1zjzx350jaynrniain0giay8sxych12p4cm";
};
nativeBuildInputs = [ makeWrapper ];
@ -37,6 +37,8 @@ stdenv.mkDerivation rec {
mkdir -pv ${pkg_path}
# unpacking should have produced a dir named 'smartgit'
cp -a smartgit/* ${pkg_path}
# prevent using packaged jre
rm -r ${pkg_path}/jre
mkdir -pv ${bin_path}
jre=${jre.home}
makeWrapper ${pkg_path}/bin/smartgit.sh ${bin_path}/smartgit \
@ -45,6 +47,7 @@ stdenv.mkDerivation rec {
--prefix JRE_HOME : ${jre} \
--prefix JAVA_HOME : ${jre} \
--prefix SMARTGITHG_JAVA_HOME : ${jre}
sed -i '/ --login/d' ${pkg_path}/bin/smartgit.sh
patchShebangs $out
cp ${bin_path}/smartgit ${bin_path}/smartgithg