logisim: use better jar wrapper, closes #23068

This commit is contained in:
Christopher League 2017-02-22 08:13:01 -05:00 committed by Franz Pletz
parent d444aa4ade
commit 242f6caac6

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, jre }:
{ stdenv, fetchurl, jre, makeWrapper }:
let version = "2.7.1"; in
@ -11,17 +11,12 @@ stdenv.mkDerivation {
};
phases = [ "installPhase" ];
nativeBuildInputs = [makeWrapper];
installPhase = ''
mkdir -pv $out/bin
cp -v $src $out/logisim.jar
cat > $out/bin/logisim << EOF
#!${stdenv.shell}
${jre}/bin/java -jar $out/logisim.jar
EOF
chmod +x $out/bin/logisim
makeWrapper ${jre}/bin/java $out/bin/logisim --add-flags "-jar $src"
'';
meta = {