mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
logisim: use better jar wrapper, closes #23068
This commit is contained in:
parent
d444aa4ade
commit
242f6caac6
1 changed files with 5 additions and 10 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue