2024-06-20 14:57:18 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
fetch_librusty_v8 = args: fetchurl {
|
|
|
|
name = "librusty_v8-${args.version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${stdenv.hostPlatform.rust.rustcTarget}.a";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = args.shas.${stdenv.hostPlatform.system};
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
|
|
|
inherit (args) version;
|
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
fetch_librusty_v8 {
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.83.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
shas = {
|
2024-06-05 15:53:02 +00:00
|
|
|
x86_64-linux = "sha256-RJNdy5jRZK3dTgrHsWuZZAHUyy1EogyNNuBekZ3Arrk=";
|
|
|
|
aarch64-linux = "sha256-mpOmuqtd7ob6xvrgH4P/6GLa/hXTS/ok0WOYo7+7ZhI=";
|
|
|
|
x86_64-darwin = "sha256-2o8CvJ3r5+4PLNGTySqPPDTqbU0piX4D1UtZMscMdHU=";
|
|
|
|
aarch64-darwin = "sha256-WHeITWSHjZxfQJndxcjsp4yIERKrKXSHFZ0UBc43p8o=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|