Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
21 lines
568 B
Nix
21 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 ];
|
|
};
|
|
};
|
|
}
|