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-21 09:56:14 +0200
committerCharlotte Van Petegem <charlotte.vanpetegem@ugent.be>2023-09-21 09:57:11 +0200
commitb60565ed4d41584adb62cf3ab2afee85bf6f8144 (patch)
tree9bdcff407f09f02c5ef191814e3a5f4b80810492 /pkgs/applications/editors/bluej/default.nix
parent11e7a4161fc41c639567e6f76b39d74bffe4ce9c (diff)
bluej: use dpkg instead of manual preUnpackHook
Diffstat (limited to 'pkgs/applications/editors/bluej/default.nix')
-rw-r--r--pkgs/applications/editors/bluej/default.nix16
1 files changed, 2 insertions, 14 deletions
diff --git a/pkgs/applications/editors/bluej/default.nix b/pkgs/applications/editors/bluej/default.nix
index ddcb002db5d14..a90cfba529fb6 100644
--- a/pkgs/applications/editors/bluej/default.nix
+++ b/pkgs/applications/editors/bluej/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, openjdk, glib, wrapGAppsHook, zstd }:
+{ lib, stdenv, fetchurl, openjdk, glib, dpkg, wrapGAppsHook }:
 
 stdenv.mkDerivation rec {
   pname = "bluej";
@@ -12,21 +12,9 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-sOT86opMa9ytxJlfURIsD06HiP+j+oz3lQ0DqmLV1wE=";
   };
 
-  nativeBuildInputs = [ zstd wrapGAppsHook ];
+  nativeBuildInputs = [ dpkg wrapGAppsHook ];
   buildInputs = [ glib ];
 
-  sourceRoot = ".";
-
-  preUnpack = ''
-    unpackCmdHooks+=(_tryDebData)
-    _tryDebData() {
-      if ! [[ "$1" =~ \.deb$ ]]; then return 1; fi
-      ar xf $src
-      if ! [[ -e data.tar.zst ]]; then return 1; fi
-      unpackFile data.tar.zst
-    }
-  '';
-
   dontWrapGApps = true;
 
   installPhase = ''