1# COPIED FROM nixpkgs/pkgs/by-name/router
2{
3 lib,
4 stdenv,
5 fetchurl,
6}:
7
8let
9 fetch_librusty_v8 =
10 args:
11 fetchurl {
12 name = "librusty_v8-${args.version}";
13 url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${stdenv.hostPlatform.rust.rustcTarget}.a";
14 sha256 = args.shas.${stdenv.hostPlatform.system};
15 meta = {
16 inherit (args) version;
17 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
18 };
19 };
20in
21fetch_librusty_v8 {
22 version = "130.0.7";
23 shas = {
24 x86_64-linux = "sha256-pkdsuU6bAkcIHEZUJOt5PXdzK424CEgTLXjLtQ80t10=";
25 };
26}