Skip to content

Instantly share code, notes, and snippets.

@ereslibre
Created March 30, 2022 17:49
Show Gist options
  • Save ereslibre/8227a37fdc4b9c46f41e92e2d48ea7ed to your computer and use it in GitHub Desktop.
Save ereslibre/8227a37fdc4b9c46f41e92e2d48ea7ed to your computer and use it in GitHub Desktop.
diff --git a/pkgs/development/interpreters/wasmtime/default.nix b/pkgs/development/interpreters/wasmtime/default.nix
index 9ab115df47c..eadc0d3e8a6 100644
--- a/pkgs/development/interpreters/wasmtime/default.nix
+++ b/pkgs/development/interpreters/wasmtime/default.nix
@@ -1,4 +1,4 @@
-{ rustPlatform, fetchFromGitHub, lib, python, cmake, llvmPackages, clang, stdenv, darwin }:
+{ rustPlatform, fetchFromGitHub, lib, python, cmake, llvmPackages, clang, stdenv, darwin, ninja, gn }:
rustPlatform.buildRustPackage rec {
pname = "wasmtime";
@@ -8,7 +8,8 @@ rustPlatform.buildRustPackage rec {
owner = "bytecodealliance";
repo = pname;
rev = "v${version}";
- sha256 = "sha256-yWi4bz+DvTMy/Krt6uqg8M1Keah2ynEvgnupiBPahiY";
+ sha256 = "sha256-yWi4bz+DvTMy/Krt6uqg8M1Keah2ynEvgnupiBPahiY=";
+
fetchSubmodules = true;
};
@@ -18,6 +19,10 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ llvmPackages.libclang ] ++
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
+ CLANG_BASE_PATH = "${clang}";
+ GN = "${gn}/bin/gn";
+ NINJA = "${ninja}/bin/ninja";
+ V8_FROM_SOURCE = "1";
configurePhase = ''
export HOME=$TMP;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment