From 50915af13808bf62a62c80eeefd7bb9f2ed2e001 Mon Sep 17 00:00:00 2001 From: Sebastien Lavoie Date: Thu, 5 Dec 2019 13:56:30 +0100 Subject: phantomjs2: Fix compilation when using clang60 --- pkgs/development/tools/phantomjs2/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/tools/phantomjs2/default.nix b/pkgs/development/tools/phantomjs2/default.nix index 29b8d4d5ae1e..f50e7670b463 100644 --- a/pkgs/development/tools/phantomjs2/default.nix +++ b/pkgs/development/tools/phantomjs2/default.nix @@ -69,6 +69,10 @@ in stdenv.mkDerivation rec { --replace "QT_MINOR_VERSION, 5" "QT_MINOR_VERSION, 9" ''; + # Avoids error in webpage.cpp:80:89: + # invalid suffix on literal; C++11 requires a space between litend identifier + NIX_CFLAGS_COMPILE = "-Wno-reserved-user-defined-literal"; + __impureHostDeps = stdenv.lib.optional stdenv.isDarwin "/usr/lib/libicucore.dylib"; enableParallelBuilding = true; -- cgit 1.4.1