From b2386a036a49d6c13e2a153897059e7ce02fbae8 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Fri, 18 Aug 2023 11:53:30 +0200 Subject: [PATCH] bluej: 5.1.0 -> 5.2.0 https://bluej.org/versions.html --- pkgs/applications/editors/bluej/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/editors/bluej/default.nix b/pkgs/applications/editors/bluej/default.nix index 511928d14353..7980cf386e2b 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 '';