summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/wasmer
diff options
context:
space:
mode:
authorSirio Balmelli <sirio@b-ad.ch>2021-04-01 10:14:40 +0200
committerSirio Balmelli <sirio@b-ad.ch>2021-04-03 11:37:23 +0200
commit5ead7d9343b6c62f1e422e0cf9e0df90d06e2181 (patch)
tree3328d4d16a61c7ea35755c270d67577cb6af4d93 /pkgs/development/interpreters/wasmer
parentc54625d5ca9be37b48dff5faa7f6f8a9be3dbc70 (diff)
wasmer: 0.17.0 -> 1.0.2
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
Diffstat (limited to 'pkgs/development/interpreters/wasmer')
-rw-r--r--pkgs/development/interpreters/wasmer/default.nix23
1 files changed, 15 insertions, 8 deletions
diff --git a/pkgs/development/interpreters/wasmer/default.nix b/pkgs/development/interpreters/wasmer/default.nix
index 91e13ed32cd9..8077177d8b8f 100644
--- a/pkgs/development/interpreters/wasmer/default.nix
+++ b/pkgs/development/interpreters/wasmer/default.nix
@@ -8,25 +8,32 @@
rustPlatform.buildRustPackage rec {
pname = "wasmer";
- version = "0.17.0";
+ version = "1.0.2";
src = fetchFromGitHub {
owner = "wasmerio";
repo = pname;
rev = version;
- sha256 = "05g4h0xkqd14wnmijiiwmhk6l909fjxr6a2zplrjfxk5bypdalpm";
+ sha256 = "0ciia8hhkkyh6rmrxgbk3bgwjwzkcba6645wlcm0vlgk2w4i5m3z";
fetchSubmodules = true;
};
- cargoSha256 = "1ssmgx9fjvkq7ycyzjanqmlm5b80akllq6qyv3mj0k5fvs659wcq";
+ cargoSha256 = "08r2b4s005w8r207jwq2fd43y3prgd8pg1m72aww1r7yrbxdr0v2";
nativeBuildInputs = [ cmake pkg-config ];
- # Since wasmer 0.17 no backends are enabled by default. Backends are now detected
- # using the [makefile](https://github.com/wasmerio/wasmer/blob/master/Makefile).
- # Enabling cranelift as this used to be the old default. At least one backend is
- # needed for the run subcommand to work.
- cargoBuildFlags = [ "--features" "backend-cranelift" ];
+ 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,test-jit"
+ ];
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";