From 2180d9593766ab240f12818027783a7465be6b04 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Tue, 7 Apr 2015 21:14:24 -0400 Subject: [PATCH] librevenge: fix on Darwin --- pkgs/development/libraries/librevenge/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/librevenge/default.nix b/pkgs/development/libraries/librevenge/default.nix index 465b03b88fd1..ff7886d0513a 100644 --- a/pkgs/development/libraries/librevenge/default.nix +++ b/pkgs/development/libraries/librevenge/default.nix @@ -19,11 +19,18 @@ stdenv.mkDerivation { src = fetchurl { inherit (s) url sha256; }; + + # Clang generates warnings in Boost's header files + # -Werror causes these warnings to be interpreted as errors + # Simplest solution: disable -Werror + configureFlags = if (stdenv.cc.cc.isClang or false) + then [ "--disable-werror" ] else null; + meta = { inherit (s) version; description = ''A base library for writing document import filters''; license = stdenv.lib.licenses.mpl20 ; maintainers = [stdenv.lib.maintainers.raskin]; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; }; }