From 8dfb8d06f0b2f6b4792d012e929da43b21cfeec9 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sat, 19 Mar 2016 19:50:36 +0100 Subject: [PATCH] ipxe: fix gcc5 build gcc5 enables additional warnings, causing the build to fail with -Werror. The build could be fixed by specifically disabling errors for `discarded-array-qualifiers` and `logical-not-parentheses` warnings, but simply passing -Wno-error is more future proof. See https://hydra.nixos.org/build/33274006/nixlog/1/raw --- pkgs/tools/misc/ipxe/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/misc/ipxe/default.nix b/pkgs/tools/misc/ipxe/default.nix index e4c161b2e51..4346d25ca07 100644 --- a/pkgs/tools/misc/ipxe/default.nix +++ b/pkgs/tools/misc/ipxe/default.nix @@ -18,6 +18,8 @@ stdenv.mkDerivation { preConfigure = "cd src"; + NIX_CFLAGS_COMPILE = "-Wno-error"; + makeFlags = [ "ECHO_E_BIN_ECHO=echo" "ECHO_E_BIN_ECHO_E=echo" # No /bin/echo here. "ISOLINUX_BIN_LIST=${syslinux}/share/syslinux/isolinux.bin"