From 9d8255d7fe7f16fe29e0af6abe2e2328082daf03 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Sun, 17 Aug 2025 20:53:03 +0100 Subject: [PATCH] hyprmagnifier: init at unstable-2025-05-16 Co-authored-by: Yiyu Zhou --- pkgs/by-name/hy/hyprmagnifier/package.nix | 60 +++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 pkgs/by-name/hy/hyprmagnifier/package.nix diff --git a/pkgs/by-name/hy/hyprmagnifier/package.nix b/pkgs/by-name/hy/hyprmagnifier/package.nix new file mode 100644 index 000000000000..48042f069a6c --- /dev/null +++ b/pkgs/by-name/hy/hyprmagnifier/package.nix @@ -0,0 +1,60 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + pkg-config, + wayland, + wayland-protocols, + wayland-scanner, + hyprwayland-scanner, + libxkbcommon, + pango, + libjpeg, + hyprutils, + nix-update-script, +}: + +stdenv.mkDerivation { + pname = "hyprmagnifier"; + version = "0.0.1-unstable-2025-05-16"; + + src = fetchFromGitHub { + owner = "st0rmbtw"; + repo = "hyprmagnifier"; + rev = "ce05ed35a1a7f9df976be7ee604d291ddad9c91c"; + hash = "sha256-vsQnL3R7lPKsUlDQKXirWMj/3qI377g7PkKlN+eVDTI="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + pkg-config + hyprwayland-scanner + ]; + + buildInputs = [ + wayland + wayland-protocols + wayland-scanner + hyprwayland-scanner + libxkbcommon + pango + libjpeg + hyprutils + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "wlroots-compatible Wayland magnifier that does not suck"; + homepage = "https://github.com/st0rmbtw/hyprmagnifier"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ + matthewcroughan + ]; + mainProgram = "hyprmagnifier"; + platforms = lib.platforms.all; + }; +}