From f253578740ccc9fd1ba93d7ac4585048856e8bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20B=C3=B6schen?= Date: Sat, 30 Mar 2024 23:01:15 +0100 Subject: [PATCH] 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. --- .../applications/window-managers/hyprwm/hyprshade/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix b/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix index 229f53ed3de8..61690f8f8bdb 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";