about summary refs log tree commit diff
path: root/pkgs/applications/editors/bluej/default.nix
diff options
context:
space:
mode:
authorCharlotte Van Petegem <charlotte.vanpetegem@ugent.be>2023-09-20 10:33:59 +0200
committerCharlotte Van Petegem <charlotte.vanpetegem@ugent.be>2023-09-20 10:33:59 +0200
commit2f0a232bf540ebfeac6d3cca1110c14e060f319a (patch)
tree6876b4a35114f32cd6abc96afe474166ec103778 /pkgs/applications/editors/bluej/default.nix
parent8acedb7656bedb347dc5b6b673fa4c497a8838a1 (diff)
bluej: set meta.mainProgram and reduce size of built derivation
The bundled jdk and javafx are not used (they don't even work on NixOS), but
they are quite big, so remove them from the final built output.
Diffstat (limited to 'pkgs/applications/editors/bluej/default.nix')
-rw-r--r--pkgs/applications/editors/bluej/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/editors/bluej/default.nix b/pkgs/applications/editors/bluej/default.nix
index 7980cf386e2b2..ddcb002db5d14 100644
--- a/pkgs/applications/editors/bluej/default.nix
+++ b/pkgs/applications/editors/bluej/default.nix
@@ -35,6 +35,10 @@ stdenv.mkDerivation rec {
     mkdir -p $out
     cp -r usr/* $out
 
+    rm -r $out/share/bluej/jdk
+    rm -r $out/share/bluej/javafx
+    rm -r $out/share/bluej/javafx-*.jar
+
     makeWrapper ${openjdk}/bin/java $out/bin/bluej \
       "''${gappsWrapperArgs[@]}" \
       --add-flags "-Dawt.useSystemAAFontSettings=on -Xmx512M \
@@ -49,6 +53,7 @@ stdenv.mkDerivation rec {
     homepage = "https://www.bluej.org/";
     sourceProvenance = with sourceTypes; [ binaryBytecode ];
     license = licenses.gpl2ClasspathPlus;
+    mainProgram = pname;
     maintainers = with maintainers; [ chvp ];
     platforms = platforms.linux;
   };