Unverified Commit 01bbd6ce authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

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

hyprshade: fix systemd user service
parents 4927aeab 21ac8f8c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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; {