Files
nixpkgs/pkgs/by-name/hy/hyprsunset/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

63 lines
1.2 KiB
Nix

{
lib,
stdenv,
cmake,
fetchFromGitHub,
pkg-config,
hyprland-protocols,
hyprlang,
hyprutils,
hyprwayland-scanner,
wayland,
wayland-protocols,
wayland-scanner,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hyprsunset";
version = "0.3.3";
src = fetchFromGitHub {
owner = "hyprwm";
repo = "hyprsunset";
tag = "v${finalAttrs.version}";
hash = "sha256-Yk6nDzCXrOehX3At8qdZ0cLr1kPySqACsihMYuP6T8w=";
};
postPatch = ''
# hyprwayland-scanner is not required at runtime
substituteInPlace CMakeLists.txt --replace-fail "hyprwayland-scanner>=0.4.0" ""
'';
nativeBuildInputs = [
cmake
pkg-config
hyprwayland-scanner
];
buildInputs = [
hyprland-protocols
hyprlang
hyprutils
wayland
wayland-protocols
wayland-scanner
];
strictDeps = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
homepage = "https://github.com/hyprwm/hyprsunset";
description = "Application to enable a blue-light filter on Hyprland";
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
teams = [ lib.teams.hyprland ];
maintainers = with lib.maintainers; [ logger ];
mainProgram = "hyprsunset";
};
})