gnuapl: Fix build with GCC 7

https://hydra.nixos.org/build/63985912
This commit is contained in:
Tuomas Tynkkynen 2017-11-16 19:44:12 +02:00
parent 24f2e730a7
commit 2b27a46f2e

View File

@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
buildInputs = [ readline gettext ncurses ];
# Needed with GCC 7
NIX_CFLAGS_COMPILE = "-Wno-error=int-in-bool-context";
patchPhase = optionalString stdenv.isDarwin ''
substituteInPlace src/LApack.cc --replace "malloc.h" "malloc/malloc.h"
'';