Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
965 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
more-itertools,
click,
hyprland,
makeWrapper,
}:
buildPythonPackage rec {
pname = "hyprshade";
version = "4.0.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "loqusion";
repo = "hyprshade";
tag = version;
hash = "sha256-NnKhIgDAOKOdEqgHzgLq1MSHG3FDT2AVXJZ53Ozzioc=";
};
nativeBuildInputs = [
hatchling
makeWrapper
];
propagatedBuildInputs = [
more-itertools
click
];
postFixup = ''
wrapProgram $out/bin/hyprshade \
--set HYPRSHADE_SHADERS_DIR $out/share/hyprshade/shaders \
--prefix PATH : ${lib.makeBinPath [ hyprland ]}
'';
meta = with lib; {
homepage = "https://github.com/loqusion/hyprshade";
description = "Hyprland shade configuration tool";
mainProgram = "hyprshade";
license = licenses.mit;
maintainers = with maintainers; [ willswats ];
platforms = platforms.linux;
};
}