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.me>2023-08-18 11:53:30 +0200
committerCharlotte Van Petegem <charlotte@vanpetegem.me>2023-08-18 11:53:56 +0200
commitb2386a036a49d6c13e2a153897059e7ce02fbae8 (patch)
tree8138e6a995581754adf4edba541b6a98bca647b3 /pkgs/applications/editors/bluej/default.nix
parent5b45dbced31c49010dce09e71e13854bacdf0ef7 (diff)
bluej: 5.1.0 -> 5.2.0
https://bluej.org/versions.html
Diffstat (limited to 'pkgs/applications/editors/bluej/default.nix')
-rw-r--r--pkgs/applications/editors/bluej/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/applications/editors/bluej/default.nix b/pkgs/applications/editors/bluej/default.nix
index 511928d14353c..7980cf386e2b2 100644
--- a/pkgs/applications/editors/bluej/default.nix
+++ b/pkgs/applications/editors/bluej/default.nix
@@ -1,18 +1,18 @@
-{ lib, stdenv, fetchurl, openjdk, glib, wrapGAppsHook }:
+{ lib, stdenv, fetchurl, openjdk, glib, wrapGAppsHook, zstd }:
 
 stdenv.mkDerivation rec {
   pname = "bluej";
-  version = "5.1.0";
+  version = "5.2.0";
 
   src = fetchurl {
     # We use the deb here. First instinct might be to go for the "generic" JAR
     # download, but that is actually a graphical installer that is much harder
     # to unpack than the deb.
     url = "https://www.bluej.org/download/files/BlueJ-linux-${builtins.replaceStrings ["."] [""] version}.deb";
-    sha256 = "sha256-tOb15wU9OjUt0D8l/JkaGYj84L7HV4FUnQQB5cRAxG0=";
+    sha256 = "sha256-sOT86opMa9ytxJlfURIsD06HiP+j+oz3lQ0DqmLV1wE=";
   };
 
-  nativeBuildInputs = [ wrapGAppsHook ];
+  nativeBuildInputs = [ zstd wrapGAppsHook ];
   buildInputs = [ glib ];
 
   sourceRoot = ".";
@@ -21,9 +21,9 @@ stdenv.mkDerivation rec {
     unpackCmdHooks+=(_tryDebData)
     _tryDebData() {
       if ! [[ "$1" =~ \.deb$ ]]; then return 1; fi
-      ar xf "$1"
-      if ! [[ -e data.tar.xz ]]; then return 1; fi
-      unpackFile data.tar.xz
+      ar xf $src
+      if ! [[ -e data.tar.zst ]]; then return 1; fi
+      unpackFile data.tar.zst
     }
   '';
 
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
       "''${gappsWrapperArgs[@]}" \
       --add-flags "-Dawt.useSystemAAFontSettings=on -Xmx512M \
                    --add-opens javafx.graphics/com.sun.glass.ui=ALL-UNNAMED \
-                   -jar $out/share/bluej/bluej.jar"
+                   -cp $out/share/bluej/boot.jar bluej.Boot"
 
     runHook postInstall
   '';