about summary refs log tree commit diff
path: root/pkgs/applications/misc/redshift
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-12-25 22:42:03 +0200
committerArtturin <Artturin@artturin.com>2021-12-25 22:42:03 +0200
commitc77ee40389c6f1f9e06a2e7228b0ffc5057e8427 (patch)
tree06a148e570addebbcce6504ba5bf56fc758a97de /pkgs/applications/misc/redshift
parentbf6c88eba29055e384859ae551f88cedf5d26033 (diff)
{redshift,gammastep}: do not double wrap
the app id will be wrong if double wrapped
Diffstat (limited to 'pkgs/applications/misc/redshift')
-rw-r--r--pkgs/applications/misc/redshift/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/misc/redshift/default.nix b/pkgs/applications/misc/redshift/default.nix
index 5798473db5e0f..6bf3b32aa87e3 100644
--- a/pkgs/applications/misc/redshift/default.nix
+++ b/pkgs/applications/misc/redshift/default.nix
@@ -64,7 +64,16 @@ let
 
       preConfigure = "./bootstrap";
 
-      postFixup = "wrapPythonPrograms";
+      dontWrapGApps = true;
+
+      preFixup = ''
+        makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
+      '';
+
+      postFixup = ''
+        wrapPythonPrograms
+        wrapGApp $out/bin/${pname}
+      '';
 
       # the geoclue agent may inspect these paths and expect them to be
       # valid without having the correct $PATH set