Merge pull request #299984 from willswats/hyprshade-fix-install

hyprshade: fix systemd user service
This commit is contained in:
Sandro 2024-04-13 22:47:11 +02:00 committed by GitHub
commit 01bbd6cee7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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