Fix hash calculations
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user