verilator: fix build on Darwin

This commit is contained in:
Robert Scott
2025-09-26 03:25:08 -07:00
committed by Robert Schütz
parent 21708aaeff
commit 06be23d662
+9
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
perl,
flex,
bison,
@@ -32,6 +33,14 @@ stdenv.mkDerivation rec {
hash = "sha256-S+cDnKOTPjLw+sNmWL3+Ay6+UM8poMadkyPSGd3hgnc=";
};
patches = [
(fetchpatch {
name = "clang-V3hash-overload-fix.patch";
url = "https://github.com/verilator/verilator/commit/2aa260a03b67d3fe86bc64b8a59183f8dc21e117.patch";
hash = "sha256-waUsctWiAMG3lCpQi+VUUZ7qMw/kJGu/wNXPHZGuAoU=";
})
];
enableParallelBuilding = true;
buildInputs = [
perl