From 71cddf59c06c3f2cdd2567c84a7ca2c03f3dba32 Mon Sep 17 00:00:00 2001 From: Atemu Date: Fri, 9 Jan 2026 07:47:49 +0100 Subject: [PATCH] xcursor-viewer: init at 0-unstable-2026-01-05 I ran this to preview a cursor theme on wayland and it worked as expected. The updater also works. --- pkgs/by-name/xc/xcursor-viewer/package.nix | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/xc/xcursor-viewer/package.nix diff --git a/pkgs/by-name/xc/xcursor-viewer/package.nix b/pkgs/by-name/xc/xcursor-viewer/package.nix new file mode 100644 index 000000000000..5f3c20580090 --- /dev/null +++ b/pkgs/by-name/xc/xcursor-viewer/package.nix @@ -0,0 +1,38 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + qt5, + unstableGitUpdater, +}: + +stdenv.mkDerivation { + pname = "xcursor-viewer"; + version = "0-unstable-2026-01-05"; + + src = fetchFromGitHub { + owner = "drizt"; + repo = "xcursor-viewer"; + rev = "216ed3b6b4694f75fc424862874dc5e2b66fb685"; + hash = "sha256-faQuxHrUAqqSODDKZrRlMnWRj0NeM8hSHSbec7KSo50="; + }; + + nativeBuildInputs = [ + cmake + qt5.wrapQtAppsHook + ]; + + buildInputs = [ qt5.qtbase ]; + + passthru.updateScript = unstableGitUpdater { }; + + meta = { + description = "A preview application for cursors in xcurosr format built in QT5"; + homepage = "https://github.com/drizt/xcursor-viewer/"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ atemu ]; + mainProgram = "xcursor-viewer"; + platforms = lib.platforms.all; + }; +}