mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
43984407b5
Updates deno to v2. Slight refactor of fetcher code for grabbing librusty_v8. Updated the update scripts to use new Deno v2 interfaces and pull latest toml dependency from jsr rather than the deno.land registry. Added release note.
22 lines
568 B
Nix
22 lines
568 B
Nix
# not a stable interface, do not reference outside the deno package but make a
|
|
# copy if you need
|
|
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
{
|
|
fetchLibrustyV8 =
|
|
args:
|
|
fetchurl {
|
|
name = "librusty_v8-${args.version}";
|
|
url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${stdenv.hostPlatform.rust.rustcTarget}.a.gz";
|
|
sha256 = args.shas.${stdenv.hostPlatform.system};
|
|
meta = {
|
|
inherit (args) version;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
};
|
|
}
|