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