From 8958ed65f3ac50f3c4363e33e0ab1aaf00b55c89 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 8 Apr 2026 12:20:25 -0400 Subject: [PATCH 1/3] fix: update x86_64-linux AppImage hash for 3.0.13 Cursor replaced the AppImage binary at the same URL, causing a hash mismatch during build. Updated to the current hash. Fixes #49 --- package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.nix b/package.nix index a35d958..c38662d 100644 --- a/package.nix +++ b/package.nix @@ -37,7 +37,7 @@ let sources = { x86_64-linux = fetchurl { url = "https://downloads.cursor.com/production/48a15759f53cd5fc9b5c20936ad7d79847d914b5/linux/x64/Cursor-${version}-x86_64.AppImage"; - hash = "sha256-MbtQWkf2U8e//pAoY4mGFoxFi/7zwwnI/jylU5HxgM4="; + hash = "sha256-GaeBuRRvVAoz8qr4xz6Kq0f7aKU6vIJZHqTjrhivqs4="; }; aarch64-linux = fetchurl { url = "https://downloads.cursor.com/production/b9e5948c1ad20443a5cecba6b84a3c9b99d62582/linux/arm64/Cursor-${version}-aarch64.AppImage"; From 90a233907d20307d7e05baa9574c89af9ceae30e Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 8 Apr 2026 12:24:41 -0400 Subject: [PATCH 2/3] fix: replace deprecated xorg.* package names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nixpkgs deprecated the xorg package set. Updated to the new top-level names (e.g. xorg.libX11 → libx11). Also removed duplicate libxkbfile. --- package.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/package.nix b/package.nix index c38662d..0ab7364 100644 --- a/package.nix +++ b/package.nix @@ -17,7 +17,13 @@ at-spi2-atk, at-spi2-core, libxkbcommon, - xorg, + libx11, + libxcomposite, + libxdamage, + libxext, + libxfixes, + libxrandr, + libxcb, wayland, gtk3, glib, @@ -71,7 +77,6 @@ if stdenv.hostPlatform.isLinux then # Keyboard/input handling (fixes native-keymap errors) libxkbfile libxkbcommon - xorg.libxkbfile # Security/credentials libsecret nss @@ -97,13 +102,13 @@ if stdenv.hostPlatform.isLinux then libpulseaudio systemd # X11 libraries - xorg.libX11 - xorg.libXcomposite - xorg.libXdamage - xorg.libXext - xorg.libXfixes - xorg.libXrandr - xorg.libxcb + libx11 + libxcomposite + libxdamage + libxext + libxfixes + libxrandr + libxcb ]; # Ensure Chrome is accessible with standard names From b99693ff9f9195fbc6538f66d734a969612eaa79 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 8 Apr 2026 12:38:00 -0400 Subject: [PATCH 3/3] fix: install icons as co.anysphere.cursor to match desktop file The desktop file references Icon=co.anysphere.cursor but icons were installed as cursor.png, causing a missing icon in desktop environments. --- package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.nix b/package.nix index 0ab7364..c07401d 100644 --- a/package.nix +++ b/package.nix @@ -127,7 +127,7 @@ if stdenv.hostPlatform.isLinux then for size in 16 32 48 64 128 256 512 1024; do if [ -f ${appimageContents}/usr/share/icons/hicolor/''${size}x''${size}/apps/cursor.png ]; then install -Dm444 ${appimageContents}/usr/share/icons/hicolor/''${size}x''${size}/apps/cursor.png \ - $out/share/icons/hicolor/''${size}x''${size}/apps/cursor.png + $out/share/icons/hicolor/''${size}x''${size}/apps/co.anysphere.cursor.png fi done '';