summary refs log tree commit diff
path: root/pkgs/applications/graphics/shutter
diff options
context:
space:
mode:
authorEmery Hemingway <ehmry@posteo.net>2022-07-11 18:23:52 -0500
committerehmry <ehmry@posteo.net>2022-08-19 13:11:27 -0500
commitb5526585c2de2e66c9111a5484dee65806acbcf5 (patch)
tree72625ad307637114914f9266658d7ad78e52c785 /pkgs/applications/graphics/shutter
parent1a9c66f883bd8ccd71279a7faabe1a5556b9ccb2 (diff)
downloadnixpkgs-b5526585c2de2e66c9111a5484dee65806acbcf5.tar
nixpkgs-b5526585c2de2e66c9111a5484dee65806acbcf5.tar.gz
nixpkgs-b5526585c2de2e66c9111a5484dee65806acbcf5.tar.bz2
nixpkgs-b5526585c2de2e66c9111a5484dee65806acbcf5.tar.lz
nixpkgs-b5526585c2de2e66c9111a5484dee65806acbcf5.tar.xz
nixpkgs-b5526585c2de2e66c9111a5484dee65806acbcf5.tar.zst
nixpkgs-b5526585c2de2e66c9111a5484dee65806acbcf5.zip
treewide: inject xdg-open into wrappers as $PATH suffix
The xdg-open utility is only ever a runtime dependency and its
dependents only expect that it accept a URI as a command line
argument and do something with it that the user would expect.
For such as a trivial relationship it should be possible for
users to override xdg-open with something else in their PATH.
Diffstat (limited to 'pkgs/applications/graphics/shutter')
-rw-r--r--pkgs/applications/graphics/shutter/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/shutter/default.nix b/pkgs/applications/graphics/shutter/default.nix
index a6430f4889b..e5659fb7fe2 100644
--- a/pkgs/applications/graphics/shutter/default.nix
+++ b/pkgs/applications/graphics/shutter/default.nix
@@ -94,9 +94,11 @@ stdenv.mkDerivation rec {
   '';
 
   preFixup = ''
+    # make xdg-open overrideable at runtime
     gappsWrapperArgs+=(
       --set PERL5LIB ${perlPackages.makePerlPath perlModules} \
-      --prefix PATH : ${lib.makeBinPath [ imagemagick xdg-utils ] }
+      --prefix PATH : ${lib.makeBinPath [ imagemagick ] }
+      --suffix PATH : ${lib.makeBinPath [ xdg-utils ] }
     )
   '';