Support for aarch64

This commit is contained in:
2025-12-24 16:38:33 -04:00
parent 6af7e257f1
commit ead1ff7034
6 changed files with 143 additions and 79 deletions
+8 -6
View File
@@ -8,7 +8,7 @@ A Nix flake that provides the Cursor code editor with automatic daily updates vi
- 🔧 **Manual updates**: Local script for immediate updates
- 🛡️ **Robust**: Proper error handling and fallbacks
- 📦 **AppImage-based**: Uses Cursor's official AppImage for maximum compatibility
- 🎯 **Linux x86_64**: Optimized for Linux AMD64 architecture
- 🎯 **Linux x86_64 + aarch64**: Supports both AMD64 and ARM64 (aarch64) Linux
## Quick Start
@@ -31,18 +31,18 @@ Then use in your configuration:
```nix
# For NixOS system configuration
environment.systemPackages = with pkgs; [
cursor.packages.x86_64-linux.cursor
cursor.packages.${pkgs.system}.cursor
];
# For home-manager
home.packages = with pkgs; [
cursor.packages.x86_64-linux.cursor
cursor.packages.${pkgs.system}.cursor
];
# For devShell
devShells.default = pkgs.mkShell {
packages = with pkgs; [
cursor.packages.x86_64-linux.cursor
cursor.packages.${pkgs.system}.cursor
];
};
```
@@ -65,6 +65,8 @@ To manually update Cursor to the latest version:
./update-cursor.sh
```
Note: on a fresh fork, `cursor-release.nix` may contain a placeholder aarch64 hash until you run the updater once (or trigger the GitHub Action via `workflow_dispatch`).
To update to a specific version:
```bash
@@ -78,9 +80,9 @@ The GitHub Actions workflow runs daily and:
1. Checks Cursor's API for the latest version
2. Only updates if a new version is available
3. Downloads the AppImage and calculates SHA256 hash
4. Updates `flake.nix` with new version and hash
4. Updates `cursor-release.nix` with the new version and per-architecture hashes
5. Tests the build and commits changes
6. Creates a GitHub release for tracking
6. Pushes the update back to the repository
### Manual Updates
The `update-cursor.sh` script provides: