Commit Graph

13 Commits

Author SHA1 Message Date
Alyssa Ross
e3e57b8f18 lib.systems: elaborate Rust metadata
We need this stuff to be available in lib so make-derivation.nix can
access it to construct the Meson cross file.

This has a couple of other advantages:

 - It makes Rust less special.  Now figuring out what Rust calls a
   platform is the same as figuring out what Linux or QEMU call it.

 - We can unify the schema used to define Rust targets, and the schema
   used to access those values later.  Just like you can set "config"
   or "system" in a platform definition, and then access those same
   keys on the elaborated platform, you can now set "rustcTarget" in
   your crossSystem, and then access "stdenv.hostPlatform.rustcTarget"
   in your code.

"rustcTarget", "rustcTargetSpec", "cargoShortTarget", and
"cargoEnvVarTarget" have the "rustc" and "cargo" prefixes because
these are not exposed to code by the compiler, and are not
standardized.  The arch/os/etc. variables are all named to match the
forms in the Rust target spec JSON.

The new rust.target-family only takes a list, since we don't need to
worry about backwards compatibility when that name is used.

The old APIs are all still functional with no warning for now, so that
it's possible for external code to use a single API on both 23.05 and
23.11.  We can introduce the warnings once 23.05 is EOL, and make them
hard errors when 23.11 is EOL.
2023-11-09 10:02:24 +01:00
06kellyjac
e187c41b28 deno: 1.36.0 -> 1.37.1
Also fix update script so it can find the v8 crate dependency version
Add cmake for building libz-sys (can't link to existing zlib-ng yet)
Add protoc for internal deno libs
2023-09-28 11:48:57 +01:00
06kellyjac
7d54a86a36 deno: 1.31.1 -> 1.32.3
Don't inherit from package sets in all-packages #204303
Fix update script to use new hash cargoHash attrs
2023-04-13 09:44:52 +01:00
06kellyjac
d3c7bb65d0 deno: 1.28.1 -> 1.28.2 2022-11-25 09:50:10 +00:00
06kellyjac
de52d13612 deno: 1.23.4 -> 1.25.1 2022-09-02 12:47:36 +01:00
06kellyjac
18348a5e4d deno: 1.23.3 -> 1.23.4 2022-07-13 17:13:40 +01:00
Mark Vainomaa
2ff27bbc8e
deno: run deno fmt on update script 2021-11-19 15:59:59 +02:00
Mark Vainomaa
c5ab781203
deno: 1.15.3 -> 1.16.2
Also update crate name to look for in Cargo.toml - rusty_v8 has been
renamed to v8
2021-11-19 15:49:47 +02:00
06kellyjac
c034a1412b deno: update update script to changed deno 2021-03-12 19:34:26 +00:00
06kellyjac
dd50d1df59 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
2021-03-12 10:15:53 +00:00
06kellyjac
01c32e49a9 deno: avoid nix-prefetch error
nix-prefetch is failing with an error containing
'allow-unsafe-native-code-during-evaluation'.
This change avoids and handles this error so the update still used.

This isn't intended as a permanent fix but it works for now.
2020-08-21 23:08:15 +01:00
06kellyjac
5adbf9ad39 deno: fix update script dependency
nix-prefetch-url comes with nix and isn't a package on it's own
2020-06-15 10:45:43 +01:00
06kellyjac
55da692e6f deno: add updateScript for automatic updates
This'll save time and avoid human error.
Wrote in deno typescript because why not.
2020-06-06 16:21:38 +01:00