binaryen: 118 -> 119

This commit is contained in:
Will Cohen 2024-11-23 14:27:48 -05:00
parent 77e646f171
commit 6a49785456

View File

@ -1,16 +1,23 @@
{ lib, stdenv, cmake, python3, fetchFromGitHub, emscripten, { lib, stdenv, cmake, python3, fetchFromGitHub, emscripten,
gtest, lit, nodejs, filecheck gtest, lit, nodejs, filecheck
}: }:
let
stdenv.mkDerivation rec { testsuite = fetchFromGitHub {
owner = "WebAssembly";
repo = "testsuite";
rev = "e05365077e13a1d86ffe77acfb1a835b7aa78422";
hash = "sha256-yvZ5AZTPUA6nsD3xpFC0VLthiu2CxVto66RTXBXXeJM=";
};
in
stdenv.mkDerivation rec {
pname = "binaryen"; pname = "binaryen";
version = "118"; version = "119";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "WebAssembly"; owner = "WebAssembly";
repo = "binaryen"; repo = "binaryen";
rev = "version_${version}"; rev = "version_${version}";
hash = "sha256-akMW3S2/qUyLK8F77EtnaXPDXvIMpkGfNB2jOD6hQho="; hash = "sha256-JYXtN3CW4qm/nnjGRvv3GxQ0x9O9wHtNYQLqHIYTTOA=";
}; };
nativeBuildInputs = [ cmake python3 ]; nativeBuildInputs = [ cmake python3 ];
@ -18,6 +25,8 @@ stdenv.mkDerivation rec {
preConfigure = '' preConfigure = ''
if [ $doCheck -eq 1 ]; then if [ $doCheck -eq 1 ]; then
sed -i '/googletest/d' third_party/CMakeLists.txt sed -i '/googletest/d' third_party/CMakeLists.txt
rmdir test/spec/testsuite
ln -s ${testsuite} test/spec/testsuite
else else
cmakeFlagsArray=($cmakeFlagsArray -DBUILD_TESTS=0) cmakeFlagsArray=($cmakeFlagsArray -DBUILD_TESTS=0)
fi fi
@ -37,7 +46,7 @@ stdenv.mkDerivation rec {
# "binaryenjs" "binaryenjs_wasm" # not building this # "binaryenjs" "binaryenjs_wasm" # not building this
"lit" "gtest" "lit" "gtest"
]; ];
doCheck = stdenv.hostPlatform.isLinux; doCheck = stdenv.isLinux;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/WebAssembly/binaryen"; homepage = "https://github.com/WebAssembly/binaryen";
@ -46,8 +55,7 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ asppsa willcohen ]; maintainers = with maintainers; [ asppsa willcohen ];
license = licenses.asl20; license = licenses.asl20;
}; };
passthru.tests = { passthru.tests = {
inherit emscripten; inherit emscripten;
}; };
} }