From 0c629e9c2320b5028ef2924a61901cfab6350181 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Mon, 12 Mar 2018 21:08:44 +0100 Subject: [PATCH] v8: fix clang build /cc ZHF #36454 --- pkgs/development/libraries/v8/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/v8/default.nix b/pkgs/development/libraries/v8/default.nix index 4d49fdce3a9..3e54a02bb4e 100644 --- a/pkgs/development/libraries/v8/default.nix +++ b/pkgs/development/libraries/v8/default.nix @@ -156,10 +156,11 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ which ]; - buildInputs = [ readline python icu patchelf ] - ++ stdenv.lib.optionals stdenv.isDarwin [ cctools ]; + buildInputs = [ readline python icu ] + ++ stdenv.lib.optional stdenv.isDarwin cctools + ++ stdenv.lib.optional stdenv.isLinux patchelf; - NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow -Wno-error=unused-function -Wno-error=attributes"; + NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow -Wno-error=unused-function -Wno-error=attributes -Wno-error=unused-lambda-capture"; buildFlags = [ "LINK=c++"