Fix hash calculations

This commit is contained in:
2025-12-25 22:11:27 -04:00
parent e44400305c
commit bd7bbfca26
3 changed files with 78 additions and 14 deletions
+6 -1
View File
@@ -116,7 +116,12 @@
pkgs = pkgsFor system;
version = cursorRelease.version;
channel = channelForSystem.${system} or (throw "Unsupported system: ${system}");
url = "https://api2.cursor.sh/updates/download/golden/${channel}/cursor/${version}";
# Prefer the stable resolved downloads.cursor.com URL stored by ./update-cursor.sh.
# Fallback to the API URL for older cursor-release.nix files.
url =
if cursorRelease ? url && cursorRelease.url ? ${system}
then cursorRelease.url.${system}
else "https://api2.cursor.sh/updates/download/golden/${channel}/cursor/${version}";
sha256 = cursorRelease.sha256.${system} or "0000000000000000000000000000000000000000000000000000";
in
{