about summary refs log tree commit diff
path: root/pkgs/development/libraries/webkitgtk
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2021-02-26 21:15:17 +0100
committerPeter Simons <simons@cryp.to>2021-02-26 21:35:56 +0100
commitd2aeeb0d20054a1ba2b9924b11471604488655f7 (patch)
treeaac5ee563acc1904d358cda020f0e14732afce70 /pkgs/development/libraries/webkitgtk
parent15834f467316824c9a34458e6f777941da8e3a8f (diff)
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
Diffstat (limited to 'pkgs/development/libraries/webkitgtk')
-rw-r--r--pkgs/development/libraries/webkitgtk/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/libraries/webkitgtk/default.nix b/pkgs/development/libraries/webkitgtk/default.nix
index 9bf91da6cd906..5e9a990d14ed2 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"