Fix wasmtime build

Provide a specific path for the v8 project, so `wasmtime` dependency
`rusty_v8` can find it and does not need to download the static
library, what would break build hermetism.

authored by Rafael Fernández López and committed by Yt d233c169 a4b3bd08

+14 -8
+14 -8
pkgs/development/interpreters/wasmtime/default.nix
··· 14 14 15 15 cargoSha256 = "sha256-IqFOw9bGdM3IEoMeqDlxKfLnZvR80PSnwP9kr1tI/h0="; 16 16 17 - nativeBuildInputs = [ python3 cmake clang ]; 18 - buildInputs = [ llvmPackages.libclang ] ++ 19 - lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; 20 - LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; 21 - 22 - configurePhase = '' 23 - export HOME=$TMP; 24 - ''; 17 + # This environment variable is required so that when wasmtime tries 18 + # to run tests by using the rusty_v8 crate, it does not try to 19 + # download a static v8 build from the Internet, what would break 20 + # build hermetism. 21 + RUSTY_V8_ARCHIVE = "${v8}/lib/libv8.a"; 25 22 26 23 doCheck = true; 24 + checkFlags = [ 25 + "--skip=cli_tests::run_cwasm" 26 + "--skip=commands::compile::test::test_successful_compile" 27 + "--skip=commands::compile::test::test_aarch64_flags_compile" 28 + "--skip=commands::compile::test::test_unsupported_flags_compile" 29 + "--skip=commands::compile::test::test_x64_flags_compile" 30 + "--skip=commands::compile::test::test_x64_presets_compile" 31 + "--skip=traps::parse_dwarf_info" 32 + ]; 27 33 28 34 meta = with lib; { 29 35 description = "Standalone JIT-style runtime for WebAssembly, using Cranelift";