about summary refs log tree commit diff
path: root/pkgs/development/tools/wabt
diff options
context:
space:
mode:
authorEdmund Wu <fangkazuto@gmail.com>2020-05-07 13:03:48 -0400
committerEdmund Wu <fangkazuto@gmail.com>2020-05-07 13:03:48 -0400
commit436c1540bd9732a65dda1939eb1fa1fc88c2ce56 (patch)
treeb69b4b28be73a5290b5b74c4aa0b51efef2519fc /pkgs/development/tools/wabt
parent1eadc33e872e093aae77b85a9c68ff56b1621348 (diff)
wabt: include necessary build files for wasm2c
Diffstat (limited to 'pkgs/development/tools/wabt')
-rw-r--r--pkgs/development/tools/wabt/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/tools/wabt/default.nix b/pkgs/development/tools/wabt/default.nix
index 376593eefb8ba..a755cecc60b08 100644
--- a/pkgs/development/tools/wabt/default.nix
+++ b/pkgs/development/tools/wabt/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, cmake, python3, substituteAll }:
+{ stdenv, fetchpatch, fetchFromGitHub, cmake, python3, substituteAll }:
 
 stdenv.mkDerivation rec {
   pname = "wabt";
@@ -12,6 +12,12 @@ stdenv.mkDerivation rec {
     fetchSubmodules = true;
   };
 
+  # https://github.com/WebAssembly/wabt/pull/1408
+  patches = [ (fetchpatch {
+    url = "https://github.com/WebAssembly/wabt/pull/1408/commits/9115d0c55067435ec9c55924e8a2bb151bac095d.patch";
+    sha256 = "1iklbz630vih08brsgq2d5q91kialg255sgd1mxl7023pvrhi44g";
+  }) ];
+
   nativeBuildInputs = [ cmake ];
   cmakeFlags = [ "-DBUILD_TESTS=OFF" "-DCMAKE_PROJECT_VERSION=${version}" ];
   buildInputs = [ python3 ];