Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
at-spi2-atk,
at-spi2-core,
libxkbcommon,
xorg,
libx11,
libxcomposite,
libxdamage,
libxext,
libxfixes,
libxrandr,
libxcb,
wayland,
gtk3,
glib,
Expand All @@ -37,7 +43,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";
Expand Down Expand Up @@ -71,7 +77,6 @@ if stdenv.hostPlatform.isLinux then
# Keyboard/input handling (fixes native-keymap errors)
libxkbfile
libxkbcommon
xorg.libxkbfile
# Security/credentials
libsecret
nss
Expand All @@ -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
Expand All @@ -122,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
'';
Expand Down