diff --git a/pkgs/by-name/so/solc/package.nix b/pkgs/by-name/so/solc/package.nix index d36dc55bb69d..b104d8130f37 100644 --- a/pkgs/by-name/so/solc/package.nix +++ b/pkgs/by-name/so/solc/package.nix @@ -71,6 +71,15 @@ let hash = linuxHash; }; + # Fix build with GCC 14 + # Submitted upstream: https://github.com/ethereum/solidity/pull/15685 + postPatch = '' + substituteInPlace test/yulPhaser/Chromosome.cpp \ + --replace-fail \ + "BOOST_TEST(abs" \ + "BOOST_TEST(fabs" + ''; + cmakeFlags = [ "-DBoost_USE_STATIC_LIBS=OFF"