pkgsMusl.valgrind-light: fix build

We need to add autoreconfHook because the patch modifies configure.ac.

+15 -3
+15 -3
pkgs/development/tools/analysis/valgrind/default.nix
··· 1 - { lib, stdenv, fetchurl, perl, gdb, cctools, xnu, bootstrap_cmds }: 1 + { lib, stdenv, fetchurl, fetchpatch 2 + , autoreconfHook, perl 3 + , gdb, cctools, xnu, bootstrap_cmds 4 + }: 2 5 3 6 stdenv.mkDerivation rec { 4 7 pname = "valgrind"; ··· 9 12 sha256 = "sha256-AIWaoTp3Lt33giIl9LRu4NOa++Bx0yd42k2ZmECB9/U="; 10 13 }; 11 14 15 + patches = [ 16 + # Fix tests on Musl. 17 + # https://bugs.kde.org/show_bug.cgi?id=445300 18 + (fetchpatch { 19 + url = "https://bugsfiles.kde.org/attachment.cgi?id=143535"; 20 + sha256 = "036zyk30rixjvpylw3c7n171n4gpn6zcp7h6ya2dz4h5r478l9i6"; 21 + }) 22 + ]; 23 + 12 24 outputs = [ "out" "dev" "man" "doc" ]; 13 25 14 - hardeningDisable = [ "stackprotector" ]; 26 + hardeningDisable = [ "pie" "stackprotector" ]; 15 27 16 28 # GDB is needed to provide a sane default for `--db-command'. 17 29 # Perl is needed for `callgrind_{annotate,control}'. 18 30 buildInputs = [ gdb perl ] ++ lib.optionals (stdenv.isDarwin) [ bootstrap_cmds xnu ]; 19 31 20 32 # Perl is also a native build input. 21 - nativeBuildInputs = [ perl ]; 33 + nativeBuildInputs = [ autoreconfHook perl ]; 22 34 23 35 enableParallelBuilding = true; 24 36 separateDebugInfo = stdenv.isLinux;