summary refs log tree commit diff
path: root/pkgs/development/interpreters/wasmer/default.nix
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-11-15 19:36:07 -0500
committerfigsoda <figsoda@pm.me>2021-11-16 08:11:51 -0500
commit43333d3c6e249e477ce898e6e8aa0e65cb53818e (patch)
tree363c87a205a00b3fdb8654ee4f4f4ff10aad25d1 /pkgs/development/interpreters/wasmer/default.nix
parent44c0a3a626dfed575b23ce1795ccdc42d8b0200e (diff)
downloadnixpkgs-43333d3c6e249e477ce898e6e8aa0e65cb53818e.tar
nixpkgs-43333d3c6e249e477ce898e6e8aa0e65cb53818e.tar.gz
nixpkgs-43333d3c6e249e477ce898e6e8aa0e65cb53818e.tar.bz2
nixpkgs-43333d3c6e249e477ce898e6e8aa0e65cb53818e.tar.lz
nixpkgs-43333d3c6e249e477ce898e6e8aa0e65cb53818e.tar.xz
nixpkgs-43333d3c6e249e477ce898e6e8aa0e65cb53818e.tar.zst
nixpkgs-43333d3c6e249e477ce898e6e8aa0e65cb53818e.zip
wasmer: use buildFeatures and checkFeatures
Diffstat (limited to 'pkgs/development/interpreters/wasmer/default.nix')
-rw-r--r--pkgs/development/interpreters/wasmer/default.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/development/interpreters/wasmer/default.nix b/pkgs/development/interpreters/wasmer/default.nix
index 4dcb70bd3ec..6c714bc3de5 100644
--- a/pkgs/development/interpreters/wasmer/default.nix
+++ b/pkgs/development/interpreters/wasmer/default.nix
@@ -22,20 +22,18 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [ cmake pkg-config ];
 
+  # cranelift+jit works everywhere, see:
+  # https://github.com/wasmerio/wasmer/blob/master/Makefile#L22
+  buildFeatures = [ "cranelift" "jit" ];
   cargoBuildFlags = [
-    # cranelift+jit works everywhere, see:
-    # https://github.com/wasmerio/wasmer/blob/master/Makefile#L22
-    "--features" "cranelift,jit"
     # must target manifest and desired output bin, otherwise output is empty
     "--manifest-path" "lib/cli/Cargo.toml"
     "--bin" "wasmer"
   ];
 
-  cargoTestFlags = [
-    "--features" "test-cranelift"
-    # Can't use test-jit :
-    # error: Package `wasmer-workspace v2.0.0 (/build/source)` does not have the feature `test-jit`
-  ];
+  # Can't use test-jit:
+  # error: Package `wasmer-workspace v2.0.0 (/build/source)` does not have the feature `test-jit`
+  checkFeatures = [ "test-cranelift" ];
 
   LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";