summary refs log tree commit diff
path: root/pkgs/development/tools/rover/librusty_v8.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/rover/librusty_v8.nix')
-rw-r--r--pkgs/development/tools/rover/librusty_v8.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/development/tools/rover/librusty_v8.nix b/pkgs/development/tools/rover/librusty_v8.nix
new file mode 100644
index 00000000000..3dcb1f95acd
--- /dev/null
+++ b/pkgs/development/tools/rover/librusty_v8.nix
@@ -0,0 +1,17 @@
+{ rust, stdenv, fetchurl }:
+
+let
+  arch = rust.toRustTarget stdenv.hostPlatform;
+  fetch_librusty_v8 = args: fetchurl {
+    name = "librusty_v8-${args.version}";
+    url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${arch}.a";
+    sha256 = args.shas.${stdenv.hostPlatform.system};
+    meta = { inherit (args) version; };
+  };
+in
+fetch_librusty_v8 {
+  version = "0.38.1";
+  shas = {
+    x86_64-linux = "sha256-vRkb5ZrIOYSKa84UbsJD+Oua0wve7f1Yf3kMg/kkYSY=";
+  };
+}