valgrind: run autoconf to pick up Makefile.am patch

https://github.com/NixOS/nixpkgs/pull/51107 added a patch to Makefile.am to fix
a race condition in the build. It was unfortunately never picked up as we we're
using the generated makefile from the tarball.
This commit is contained in:
Tor Hedin Brønner 2018-12-04 13:17:49 +01:00
parent c846e8dd7f
commit d539b09768

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, gdb, llvm, cctools, xnu, bootstrap_cmds }:
{ stdenv, fetchurl, perl, gdb, llvm, cctools, xnu, bootstrap_cmds, autoreconfHook }:
stdenv.mkDerivation rec {
name = "valgrind-3.14.0";
@ -8,7 +8,10 @@ stdenv.mkDerivation rec {
sha256 = "19ds42jwd89zrsjb94g7gizkkzipn8xik3xykrpcqxylxyzi2z03";
};
# autoreconfHook is needed to pick up patching of Makefile.am
# Remove when the patch no longer applies.
patches = [ ./coregrind-makefile-race.patch ];
nativeBuildInputs = [ autoreconfHook ];
outputs = [ "out" "dev" "man" "doc" ];