diff options
author | Nick Cao <nickcao@nichi.co> | 2024-03-12 19:57:05 -0400 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2024-03-12 20:00:48 -0400 |
commit | cf7deee3492779ec316526c6c438eb4ca1c567fc (patch) | |
tree | 5f0329132b0c79668ca453e2b389f13086a6cadd /pkgs/applications/science/electronics/verilator | |
parent | 2dc4b18eb65b64351e67bdf2f950ab101f150e40 (diff) |
verilator: add patch for "attempted to destroy locked Thread Pool" failure in tests
Diffstat (limited to 'pkgs/applications/science/electronics/verilator')
-rw-r--r-- | pkgs/applications/science/electronics/verilator/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/science/electronics/verilator/default.nix b/pkgs/applications/science/electronics/verilator/default.nix index 9923d8a6a419b..92f8fa52b91f9 100644 --- a/pkgs/applications/science/electronics/verilator/default.nix +++ b/pkgs/applications/science/electronics/verilator/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, perl, flex, bison, python3, autoconf, +{ lib, stdenv, fetchFromGitHub, fetchpatch, perl, flex, bison, python3, autoconf, which, cmake, ccache, help2man, makeWrapper, glibcLocales, systemc, git, numactl }: @@ -13,6 +13,15 @@ stdenv.mkDerivation rec { hash = "sha256-Ya3lqK8BfvMVLZUrD2Et6OmptteWXp5VmZb2x2G/V/E="; }; + patches = [ + (fetchpatch { + # Fix try-lock spuriously fail in V3ThreadPool destructor + # https://github.com/verilator/verilator/pull/4938 + url = "https://github.com/verilator/verilator/commit/4b9cce4369c78423779238e585ed693c456d464e.patch"; + hash = "sha256-sGrk/pxqZqUcmJdzQoPlzXMmYqHCOmd9Y2n6ieVNg1U="; + }) + ]; + enableParallelBuilding = true; buildInputs = [ perl python3 systemc ]; # ccache nativeBuildInputs = [ makeWrapper flex bison autoconf help2man git ]; |