From d2aeeb0d20054a1ba2b9924b11471604488655f7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 26 Feb 2021 21:15:17 +0100 Subject: [PATCH] webkitgtk: remedy the build's confusion about the meaning of "truth" The package could not compile because it did not know the meaning of TRUE and FALSE [1]. So we have to make sure our build environment provides reasonable, sensible definitions to make the build succeed. [1] https://hydra.nixos.org/build/137292531 --- pkgs/development/libraries/webkitgtk/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/webkitgtk/default.nix b/pkgs/development/libraries/webkitgtk/default.nix index 9bf91da6cd9..5e9a990d14e 100644 --- a/pkgs/development/libraries/webkitgtk/default.nix +++ b/pkgs/development/libraries/webkitgtk/default.nix @@ -155,6 +155,9 @@ stdenv.mkDerivation rec { "-DPORT=GTK" "-DUSE_LIBHYPHEN=OFF" "-DUSE_WPE_RENDERER=OFF" + # ensure backward compatibility with the latest version of icu: + # http://linuxfromscratch.org/blfs/view/svn/x/webkitgtk.html + "-DCMAKE_CXX_FLAGS=-DU_DEFINE_FALSE_AND_TRUE=1" ] ++ optionals stdenv.isDarwin [ "-DENABLE_GRAPHICS_CONTEXT_3D=OFF" "-DENABLE_GTKDOC=OFF"