From 21ac8f8cd880c3c6e4f4055ad3148b70b0fcc476 Mon Sep 17 00:00:00 2001 From: willswats Date: Fri, 12 Apr 2024 17:22:08 +0100 Subject: [PATCH] hyprshade: fix systemd user service --- .../window-managers/hyprwm/hyprshade/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix b/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix index 61690f8f8bdb..0393c6eddd3b 100644 --- a/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix +++ b/pkgs/applications/window-managers/hyprwm/hyprshade/default.nix @@ -4,6 +4,8 @@ , hatchling , more-itertools , click +, hyprland +, makeWrapper }: buildPythonPackage rec { @@ -20,12 +22,15 @@ buildPythonPackage rec { nativeBuildInputs = [ hatchling + makeWrapper ]; propagatedBuildInputs = [ more-itertools click ]; postFixup = '' - wrapProgram $out/bin/hyprshade --set HYPRSHADE_SHADERS_DIR $out/share/hyprshade/shaders + wrapProgram $out/bin/hyprshade \ + --set HYPRSHADE_SHADERS_DIR $out/share/hyprshade/shaders \ + --prefix PATH : ${lib.makeBinPath [ hyprland ]} ''; meta = with lib; {