logisim: use better jar wrapper, closes #23068
This commit is contained in:
parent
d444aa4ade
commit
242f6caac6
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, jre }:
|
{ stdenv, fetchurl, jre, makeWrapper }:
|
||||||
|
|
||||||
let version = "2.7.1"; in
|
let version = "2.7.1"; in
|
||||||
|
|
||||||
|
@ -12,16 +12,11 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [makeWrapper];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -pv $out/bin
|
mkdir -pv $out/bin
|
||||||
cp -v $src $out/logisim.jar
|
makeWrapper ${jre}/bin/java $out/bin/logisim --add-flags "-jar $src"
|
||||||
|
|
||||||
cat > $out/bin/logisim << EOF
|
|
||||||
#!${stdenv.shell}
|
|
||||||
${jre}/bin/java -jar $out/logisim.jar
|
|
||||||
EOF
|
|
||||||
|
|
||||||
chmod +x $out/bin/logisim
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in New Issue