From 30454fb00ce7a8737a7b003a8b777bb514d7b4d1 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Sat, 26 Oct 2024 20:43:22 +0530 Subject: [PATCH] hyprsunset: init at 0-unstable-2024-10-08 --- pkgs/by-name/hy/hyprsunset/package.nix | 55 ++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pkgs/by-name/hy/hyprsunset/package.nix diff --git a/pkgs/by-name/hy/hyprsunset/package.nix b/pkgs/by-name/hy/hyprsunset/package.nix new file mode 100644 index 0000000000000..a1b70a67bf5d4 --- /dev/null +++ b/pkgs/by-name/hy/hyprsunset/package.nix @@ -0,0 +1,55 @@ +{ + lib, + stdenv, + cmake, + fetchFromGitHub, + pkg-config, + hyprland-protocols, + hyprutils, + hyprwayland-scanner, + wayland, + wayland-protocols, + wayland-scanner, + unstableGitUpdater, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "hyprsunset"; + version = "0-unstable-2024-10-08"; + + src = fetchFromGitHub { + owner = "hyprwm"; + repo = "hyprsunset"; + rev = "f535c1894d71d7639d19b52f5b72e1ac840c2512"; + hash = "sha256-SVkcePzX9PAlWsPSGBaxiNFCouiQmGOezhMo0+zhDIQ="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + hyprwayland-scanner + ]; + + buildInputs = [ + hyprland-protocols + hyprutils + wayland + wayland-protocols + wayland-scanner + ]; + + passthru = { + updateScript = unstableGitUpdater { }; + }; + + 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"; + }; +})