mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
46 lines
995 B
Nix
46 lines
995 B
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
hyprland,
|
|
makeWrapper,
|
|
}:
|
|
|
|
python3Packages.buildPythonPackage (finalAttrs: {
|
|
pname = "hyprshade";
|
|
version = "5.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "loqusion";
|
|
repo = "hyprshade";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-ou4Iy040DozrlJuaYh3h2iNdUEw3amsCuAEEVHah+no=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
python3Packages.hatchling
|
|
makeWrapper
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
more-itertools
|
|
click
|
|
];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/hyprshade \
|
|
--set HYPRSHADE_SHADERS_DIR $out/share/hyprshade/shaders \
|
|
--prefix PATH : ${lib.makeBinPath [ hyprland ]}
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/loqusion/hyprshade";
|
|
description = "Hyprland shade configuration tool";
|
|
mainProgram = "hyprshade";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ willswats ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|