about summary refs log tree commit diff
path: root/pkgs/development/interpreters/wasmtime
diff options
context:
space:
mode:
authorRafael Fernández López <ereslibre@ereslibre.es>2022-04-03 22:15:42 +0200
committerYt <raphael@megzari.com>2022-05-22 07:36:16 -0400
commit593dfc4d9d276141cdb0fb65d8839733858b4a50 (patch)
tree942f9ec1b67248fcd045d05e985c7f8c5c0547d5 /pkgs/development/interpreters/wasmtime
parent39773cc073737663884c9f3568c314ebf35f1739 (diff)
wasmtime: 0.36.0 -> 0.37.0
Re-enable darwin platform.
Diffstat (limited to 'pkgs/development/interpreters/wasmtime')
-rw-r--r--pkgs/development/interpreters/wasmtime/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/wasmtime/default.nix b/pkgs/development/interpreters/wasmtime/default.nix
index a475f53f91f73..fd5ff80e7afc7 100644
--- a/pkgs/development/interpreters/wasmtime/default.nix
+++ b/pkgs/development/interpreters/wasmtime/default.nix
@@ -1,24 +1,24 @@
-{ rustPlatform, fetchFromGitHub, lib, v8 }:
+{ rustPlatform, fetchFromGitHub, lib, stdenv, v8 }:
 
 rustPlatform.buildRustPackage rec {
   pname = "wasmtime";
-  version = "0.36.0";
+  version = "0.37.0";
 
   src = fetchFromGitHub {
     owner = "bytecodealliance";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-nSA78eQRbJ5JTDquaRqRgFU0V8RVCzvWUONgHxGj+Mc=";
+    sha256 = "sha256-ZUr1v94If8ER4lTHLwuP+F3xfXU7IW4ZEztBA2TPvVg=";
     fetchSubmodules = true;
   };
 
-  cargoSha256 = "sha256-/+uioJRXiugsV7SUwsDNHGaPxrxrhscQUGyXOzzwG/g=";
+  cargoSha256 = "sha256-X+KDeWavFTBaxbSPlIiyuiBC7wg1/5C/NXp+VEY8Mk8=";
 
   # This environment variable is required so that when wasmtime tries
   # to run tests by using the rusty_v8 crate, it does not try to
   # download a static v8 build from the Internet, what would break
   # build hermetism.
-  RUSTY_V8_ARCHIVE = "${v8}/lib/libv8.a";
+  RUSTY_V8_ARCHIVE = lib.optionalString stdenv.isLinux "${v8}/lib/libv8.a";
 
   doCheck = true;
   checkFlags = [
@@ -36,6 +36,6 @@ rustPlatform.buildRustPackage rec {
     homepage = "https://github.com/bytecodealliance/wasmtime";
     license = licenses.asl20;
     maintainers = [ maintainers.matthewbauer ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }