Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
965 B
Nix
49 lines
965 B
Nix
{
|
|
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;
|
|
};
|
|
}
|