From db215a62b7a071ca54e42a497959a13d3ddee912 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel <ttuegel@mailbox.org> Date: Fri, 25 May 2018 15:22:47 -0500 Subject: [PATCH] qtwebengine: fix build failure due to -Wformat-security ninja builds some components with -Wno-format, which is not compatible with the default hardening setting of -Wformat-security in Nixpkgs. --- pkgs/development/libraries/qt-5/modules/qtwebengine.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix index e798d529ce1b..dc5f2ae96b3e 100644 --- a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix +++ b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix @@ -31,6 +31,10 @@ qtModule { enableParallelBuilding = true; + # ninja builds some components with -Wno-format, + # which cannot be set at the same time as -Wformat-security + hardeningDisable = [ "format" ]; + postPatch = # Patch Chromium build tools ''