summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-06-25 14:30:16 +0800
committerGitHub <noreply@github.com>2023-06-25 14:30:16 +0800
commit307e5e304c4e8d55219d3a6a1e854b6c277a5104 (patch)
treede042f14b520e2a5787a5e0800e4043461beec00
parent963444060e926f81aeb673bf02a1233ceea20c65 (diff)
parent275360d327535373bda442ed139b5f02cc9d9a0e (diff)
downloadnixpkgs-307e5e304c4e8d55219d3a6a1e854b6c277a5104.tar
nixpkgs-307e5e304c4e8d55219d3a6a1e854b6c277a5104.tar.gz
nixpkgs-307e5e304c4e8d55219d3a6a1e854b6c277a5104.tar.bz2
nixpkgs-307e5e304c4e8d55219d3a6a1e854b6c277a5104.tar.lz
nixpkgs-307e5e304c4e8d55219d3a6a1e854b6c277a5104.tar.xz
nixpkgs-307e5e304c4e8d55219d3a6a1e854b6c277a5104.tar.zst
nixpkgs-307e5e304c4e8d55219d3a6a1e854b6c277a5104.zip
Merge pull request #236452 from NickCao/wasmer
wasmer: 3.1.1 -> 4.0.0
-rw-r--r--pkgs/development/interpreters/wasmer/default.nix20
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 10 insertions, 12 deletions
diff --git a/pkgs/development/interpreters/wasmer/default.nix b/pkgs/development/interpreters/wasmer/default.nix
index 5666b078b4c..f5a334c4165 100644
--- a/pkgs/development/interpreters/wasmer/default.nix
+++ b/pkgs/development/interpreters/wasmer/default.nix
@@ -14,18 +14,20 @@
 
 rustPlatform.buildRustPackage rec {
   pname = "wasmer";
-  version = "3.1.1";
+  version = "4.0.0";
 
   src = fetchFromGitHub {
     owner = "wasmerio";
     repo = pname;
     rev = "refs/tags/v${version}";
-    hash = "sha256-797I3FBBfnAgNfOdMajm3WNkMo3MUXb1347LBggXrLk=";
+    hash = "sha256-vpIvoKvIqXgJ6MtuqM3dryR8nxLB/diLyQYcuGkZDLU=";
   };
 
-  cargoHash = "sha256-zUTwhfRLKUixgj3JXiz2QOuwbFhfget+GcFSRL1QJ3w=";
+  cargoHash = "sha256-1Gx8MLPAA/LV9jdK8gkztcsjltju0ousETLEiTEAaEo=";
 
-  nativeBuildInputs = [ rustPlatform.bindgenHook ];
+  nativeBuildInputs = [
+    rustPlatform.bindgenHook
+  ];
 
   buildInputs = lib.optionals withLLVM [
     llvmPackages.llvm
@@ -37,14 +39,8 @@ rustPlatform.buildRustPackage rec {
     Security
   ];
 
-  LLVM_SYS_120_PREFIX = lib.optionalString withLLVM llvmPackages.llvm.dev;
-
   # check references to `compiler_features` in Makefile on update
-  buildFeatures = checkFeatures ++ [
-    "webc_runner"
-  ];
-
-  checkFeatures = [
+  buildFeatures = [
     "cranelift"
     "wasmer-artifact-create"
     "static-artifact-create"
@@ -56,6 +52,8 @@ rustPlatform.buildRustPackage rec {
 
   cargoBuildFlags = [ "--manifest-path" "lib/cli/Cargo.toml" "--bin" "wasmer" ];
 
+  env.LLVM_SYS_140_PREFIX = lib.optionalString withLLVM llvmPackages.llvm.dev;
+
   meta = with lib; {
     description = "The Universal WebAssembly Runtime";
     longDescription = ''
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index aa04bb84101..dc6ed7ab4a6 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -40305,7 +40305,7 @@ with pkgs;
   wamr = callPackage ../development/interpreters/wamr { };
 
   wasmer = callPackage ../development/interpreters/wasmer {
-    llvmPackages = llvmPackages_12;
+    llvmPackages = llvmPackages_14;
     inherit (darwin.apple_sdk.frameworks) CoreFoundation SystemConfiguration Security;
   };