summary refs log tree commit diff
path: root/pkgs/development/web/deno/update
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2021-03-03 12:05:28 +0000
committer06kellyjac <dev@j-k.io>2021-03-12 10:15:53 +0000
commitdd50d1df59a01ae201bd1536635471a5348ee68a (patch)
treeb7e51624c7b7b771ab3793c58a28aa2f42b34c35 /pkgs/development/web/deno/update
parent163ffe2fe41b9b0c757733388761c713e9457f39 (diff)
downloadnixpkgs-dd50d1df59a01ae201bd1536635471a5348ee68a.tar
nixpkgs-dd50d1df59a01ae201bd1536635471a5348ee68a.tar.gz
nixpkgs-dd50d1df59a01ae201bd1536635471a5348ee68a.tar.bz2
nixpkgs-dd50d1df59a01ae201bd1536635471a5348ee68a.tar.lz
nixpkgs-dd50d1df59a01ae201bd1536635471a5348ee68a.tar.xz
nixpkgs-dd50d1df59a01ae201bd1536635471a5348ee68a.tar.zst
nixpkgs-dd50d1df59a01ae201bd1536635471a5348ee68a.zip
deno: 1.6.3 -> 1.8.0
Added aarch64-darwin as it's been manually complied and added to
releases since 0.14.0

Removed fetchSubmodules as it couldn't fetch wpt at detached commit
a51d36327febebc8634d7b523a7e620f4ebdbf26. Doesn't seem required for much
other than testing.

Added installCheckPhase

Moved the librusty_v8 stuff within the preBuild phase and changed the
names

Skipped 1.7.X releases as there wasn't an aarch64-linux release of
librusty_v8.a available
Diffstat (limited to 'pkgs/development/web/deno/update')
-rw-r--r--pkgs/development/web/deno/update/deps.ts6
-rwxr-xr-xpkgs/development/web/deno/update/update.ts1
2 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/web/deno/update/deps.ts b/pkgs/development/web/deno/update/deps.ts
index beedeade3a8..f4266e1c90f 100644
--- a/pkgs/development/web/deno/update/deps.ts
+++ b/pkgs/development/web/deno/update/deps.ts
@@ -45,7 +45,7 @@ const templateDeps = (version: string, deps: PrefetchResult[]) =>
   `# auto-generated file -- DO NOT EDIT!
 {}:
 rec {
-  rustyV8Lib = {
+  librusty_v8 = {
     version = "${version}";
     sha256s = {
 ${deps.map((d) => `      ${d.arch.nix} = "${d.sha256}";`).join("\n")}
@@ -65,9 +65,9 @@ export async function updateDeps(
   // 0.0.0
   const version = await getRustyV8Version(owner, repo, denoVersion);
   if (typeof version !== "string") {
-    throw "no rusty_v8 version";
+    throw "no librusty_v8 version";
   }
-  log("rusty_v8 version:", version);
+  log("librusty_v8 version:", version);
   const existingVersion = await getExistingVersion(filePath);
   if (version === existingVersion) {
     log("Version already matches latest, skipping...");
diff --git a/pkgs/development/web/deno/update/update.ts b/pkgs/development/web/deno/update/update.ts
index 18d45148013..232c2482b1c 100755
--- a/pkgs/development/web/deno/update/update.ts
+++ b/pkgs/development/web/deno/update/update.ts
@@ -24,6 +24,7 @@ const architectures: Architecture[] = [
   { nix: "x86_64-linux", rust: "x86_64-unknown-linux-gnu" },
   { nix: "aarch64-linux", rust: "aarch64-unknown-linux-gnu" },
   { nix: "x86_64-darwin", rust: "x86_64-apple-darwin" },
+  { nix: "aarch64-darwin", rust: "aarch64-apple-darwin" },
 ];
 
 log("Updating deno");