Unverified Commit 2f0a232b authored by Charlotte Van Petegem's avatar Charlotte Van Petegem
Browse files

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.
parent 8acedb76
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
  };