System Gen135 @ 2024-11-20-20:35:56

This commit is contained in:
Jonas Röger 2024-11-20 20:35:57 +01:00
parent 240a59d428
commit 83563e60ba

View File

@ -4,8 +4,8 @@
hash ? "sha256-Yy9x7cSQrRpk+Flt9+H7gdogUS4WR2q2fqdVXQgvd7Y=",
jre ? pkgs.jre,
...
}:
pkgs.stdenv.mkDerivation {
}: let
drv = pkgs.stdenv.mkDerivation {
pname = "antlrworks";
inherit version;
@ -21,9 +21,15 @@ pkgs.stdenv.mkDerivation {
mkdir $out/bin
cat > $out/bin/antlrworks <<EOF
#!/usr/bin/env sh
export CLASSPATH=$out/share/java/antlrworks-${version}-complete.jar:$CLASSPATH
${jre}/bin/java org.antlr.Tool
${jre}/bin/java -jar $out/share/java/antlrworks-${version}-complete.jar
EOF
chmod +x $out/bin/antlrworks
'';
}
};
in
pkgs.makeDesktopItem {
name = "antlrworks";
desktopName = "ANTLRWorks";
exec = "${drv}/bin/antlrworks %f";
terminal = false;
}