depot/third_party/nixpkgs/pkgs/by-name/hy/hyprsunset/package.nix

55 lines
1 KiB
Nix

{
lib,
stdenv,
cmake,
fetchFromGitHub,
pkg-config,
hyprland-protocols,
hyprutils,
hyprwayland-scanner,
wayland,
wayland-protocols,
wayland-scanner,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hyprsunset";
version = "0.1.0";
src = fetchFromGitHub {
owner = "hyprwm";
repo = "hyprsunset";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-SVkcePzX9PAlWsPSGBaxiNFCouiQmGOezhMo0+zhDIQ=";
};
nativeBuildInputs = [
cmake
pkg-config
hyprwayland-scanner
];
buildInputs = [
hyprland-protocols
hyprutils
wayland
wayland-protocols
wayland-scanner
];
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;
maintainers = with lib.maintainers; [
fufexan
johnrtitor
];
mainProgram = "hyprsunset";
};
})