summary refs log tree commit diff
path: root/pkgs/development/tools/analysis/valgrind/default.nix
diff options
context:
space:
mode:
authorTor Hedin Brønner <torhedinbronner@gmail.com>2018-12-04 13:17:49 +0100
committerTor Hedin Brønner <torhedinbronner@gmail.com>2018-12-04 13:17:49 +0100
commitd539b0976845c3754a41a8706ae6188a87f6a20f (patch)
treebad3c73ebd5fe065d58881c8f4dc3a608fe5f0ac /pkgs/development/tools/analysis/valgrind/default.nix
parentc846e8dd7fb20c24a609a822bad1d9af7dba8a1d (diff)
downloadnixpkgs-d539b0976845c3754a41a8706ae6188a87f6a20f.tar
nixpkgs-d539b0976845c3754a41a8706ae6188a87f6a20f.tar.gz
nixpkgs-d539b0976845c3754a41a8706ae6188a87f6a20f.tar.bz2
nixpkgs-d539b0976845c3754a41a8706ae6188a87f6a20f.tar.lz
nixpkgs-d539b0976845c3754a41a8706ae6188a87f6a20f.tar.xz
nixpkgs-d539b0976845c3754a41a8706ae6188a87f6a20f.tar.zst
nixpkgs-d539b0976845c3754a41a8706ae6188a87f6a20f.zip
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.
Diffstat (limited to 'pkgs/development/tools/analysis/valgrind/default.nix')
-rw-r--r--pkgs/development/tools/analysis/valgrind/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/tools/analysis/valgrind/default.nix b/pkgs/development/tools/analysis/valgrind/default.nix
index df99ecb13bb..ca8d64f9132 100644
--- a/pkgs/development/tools/analysis/valgrind/default.nix
+++ b/pkgs/development/tools/analysis/valgrind/default.nix
@@ -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" ];