verilator: add patch for "attempted to destroy locked Thread Pool" failure in tests

Nick Cao cf7deee3 2dc4b18e

+10 -1
+10 -1
pkgs/applications/science/electronics/verilator/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, perl, flex, bison, python3, autoconf, 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, perl, flex, bison, python3, autoconf, 2 2 which, cmake, ccache, help2man, makeWrapper, glibcLocales, 3 3 systemc, git, numactl }: 4 4 ··· 12 12 rev = "v${version}"; 13 13 hash = "sha256-Ya3lqK8BfvMVLZUrD2Et6OmptteWXp5VmZb2x2G/V/E="; 14 14 }; 15 + 16 + patches = [ 17 + (fetchpatch { 18 + # Fix try-lock spuriously fail in V3ThreadPool destructor 19 + # https://github.com/verilator/verilator/pull/4938 20 + url = "https://github.com/verilator/verilator/commit/4b9cce4369c78423779238e585ed693c456d464e.patch"; 21 + hash = "sha256-sGrk/pxqZqUcmJdzQoPlzXMmYqHCOmd9Y2n6ieVNg1U="; 22 + }) 23 + ]; 15 24 16 25 enableParallelBuilding = true; 17 26 buildInputs = [ perl python3 systemc ]; # ccache