hyprshade: fix systemd user service

This commit is contained in:
willswats 2024-04-12 17:22:08 +01:00
parent 97390e1d60
commit 21ac8f8cd8
No known key found for this signature in database
GPG key ID: 86E0BB83F2EAF99A

View file

@ -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; {