diff options
Diffstat (limited to 'nixpkgs/pkgs/development/interpreters/wasmer/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/interpreters/wasmer/default.nix | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/nixpkgs/pkgs/development/interpreters/wasmer/default.nix b/nixpkgs/pkgs/development/interpreters/wasmer/default.nix index 4dcb70bd3ec7..1537dcee67d3 100644 --- a/nixpkgs/pkgs/development/interpreters/wasmer/default.nix +++ b/nixpkgs/pkgs/development/interpreters/wasmer/default.nix @@ -8,34 +8,32 @@ rustPlatform.buildRustPackage rec { pname = "wasmer"; - version = "2.0.0"; + version = "2.1.1"; src = fetchFromGitHub { owner = "wasmerio"; repo = pname; rev = version; - sha256 = "191f60db2y1f3xw1x81mw88vclf1c4kgvnfv74g5vb3vn7n57c5j"; + sha256 = "sha256-uD+JH42AxXxLMLqBurNDfYc7tLlBlEmaLB5rbip+/D4="; fetchSubmodules = true; }; - cargoSha256 = "0hhwixqhrl79hpzmvq7ga3kp2cfrwr4i8364cwnr7195xwnfxb0k"; + cargoSha256 = "sha256-eiX5p2qWUZgoHzoHYXDsp9N6foiX3JovKO6MpoJOXFo="; 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.1.1 (/build/source)` does not have the feature `test-jit` + checkFeatures = [ "test-cranelift" ]; LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; |