about summary refs log tree commit diff
path: root/pkgs/applications/window-managers
diff options
context:
space:
mode:
authorPhilipp Böschen <catouc@philipp.boeschen.me>2024-03-30 23:01:15 +0100
committerPhilipp Böschen <catouc@philipp.boeschen.me>2024-04-01 03:05:20 +0200
commitf253578740ccc9fd1ba93d7ac4585048856e8bc1 (patch)
treeca00ab5b5dc722d2d13e153c5a89a1e5449db44b /pkgs/applications/window-managers
parent9db82fb29eb1e7e07285580e61724601651ddbda (diff)
hyprshade: Fix unavailable default shaders
The orignal code looks for the shaders in either the Python data
directory, which seems to not be working well under the way nixpkgs
installs Python builds.
There is the environment variable HYPRSHADE_SHADERS_DIR in
https://github.com/loqusion/hyprshade/blob/main/src/hyprshade/shader/dirs.py#L12
that lets us configure it to "$out/share/hyprshade/shaders" instead to
give full functionality.
Diffstat (limited to 'pkgs/applications/window-managers')
-rw-r--r--pkgs/applications/window-managers/hyprwm/hyprshade/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix b/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix
index 229f53ed3de8f..61690f8f8bdb4 100644
--- a/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix
+++ b/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix
@@ -24,6 +24,10 @@ buildPythonPackage rec {
 
   propagatedBuildInputs = [ more-itertools click ];
 
+  postFixup = ''
+    wrapProgram $out/bin/hyprshade --set HYPRSHADE_SHADERS_DIR $out/share/hyprshade/shaders
+  '';
+
   meta = with lib; {
     homepage = "https://github.com/loqusion/hyprshade";
     description = "Hyprland shade configuration tool";