From cac58b3049a3af6e7d720a505232929db52511ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lkecan=20Bozdo=C4=9Fan?= Date: Fri, 27 Mar 2026 15:33:47 +0300 Subject: [PATCH] wl-find-cursor: init at 0-unstable-2026-02-03 --- pkgs/by-name/wl/wl-find-cursor/package.nix | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/wl/wl-find-cursor/package.nix diff --git a/pkgs/by-name/wl/wl-find-cursor/package.nix b/pkgs/by-name/wl/wl-find-cursor/package.nix new file mode 100644 index 000000000000..a4ceb1e5f4e7 --- /dev/null +++ b/pkgs/by-name/wl/wl-find-cursor/package.nix @@ -0,0 +1,52 @@ +{ + lib, + fetchFromGitHub, + nix-update-script, + stdenv, + wayland, + wayland-protocols, + wayland-scanner, +}: + +stdenv.mkDerivation { + pname = "wl-find-cursor"; + version = "0-unstable-2026-02-03"; + + src = fetchFromGitHub { + owner = "cjacker"; + repo = "wl-find-cursor"; + rev = "ce1a125702b466dc537c5490f7888b4a68dee883"; + hash = "sha256-IUreWEOWF1loS5SiAh8XPFrKE35Pxv6e8hhvdtNvjiU="; + }; + + __structuredAttrs = true; + strictDeps = true; + + nativeBuildInputs = [ + wayland-scanner + ]; + + buildInputs = [ + wayland + ]; + + postPatch = '' + substituteInPlace Makefile \ + --replace-fail "/usr/share/wayland-protocols" "${wayland-protocols}/share/wayland-protocols" \ + --replace-fail "gcc" "${stdenv.cc.targetPrefix}cc" \ + --replace-fail "install: default" "install: all" + ''; + + makeFlags = [ "PREFIX=$(out)" ]; + + passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; + + meta = { + description = "Highlight and print the mouse cursor position on Wayland"; + homepage = "https://github.com/cjacker/wl-find-cursor"; + license = lib.licenses.mit; + mainProgram = "wl-find-cursor"; + maintainers = with lib.maintainers; [ ilkecan ]; + platforms = lib.platforms.linux; + }; +}