From d9d3ea6278a78a657c772784f92f404e0bfd1b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Tue, 14 Sep 2021 17:17:26 +0200 Subject: [PATCH] gnome.file-roller: avoid wrapping the program twice Use gappsWrapperArgs instead of wrapProgram to avoid double wrapping which causes problems with argv[0]. --- pkgs/desktops/gnome/apps/file-roller/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/apps/file-roller/default.nix b/pkgs/desktops/gnome/apps/file-roller/default.nix index 6af1994fb060..a26428652007 100644 --- a/pkgs/desktops/gnome/apps/file-roller/default.nix +++ b/pkgs/desktops/gnome/apps/file-roller/default.nix @@ -25,10 +25,11 @@ stdenv.mkDerivation rec { patchShebangs data/set-mime-type-entry.py ''; - postFixup = '' + preFixup = '' # Workaround because of https://gitlab.gnome.org/GNOME/file-roller/issues/40 - wrapProgram "$out/bin/file-roller" \ + gappsWrapperArgs+=( --prefix PATH : ${lib.makeBinPath [ unzip ]} + ) ''; passthru = {