sphinxsearch: add workaround for darwin build failures

upstream bug: see http://sphinxsearch.com/bugs/view.php?id=2578
fix ported from Homebrew: https://github.com/Homebrew/homebrew-core/pull/8619
This commit is contained in:
Vincent Breitmoser 2020-02-27 16:19:40 +01:00
parent f06174d135
commit 6a6bf70e48

View File

@ -31,6 +31,14 @@ stdenv.mkDerivation rec {
expat
];
CXXFLAGS = with stdenv.lib; concatStringsSep " " (optionals stdenv.isDarwin [
# see upstream bug: http://sphinxsearch.com/bugs/view.php?id=2578
# workaround for "error: invalid suffix on literal
"-Wno-reserved-user-defined-literal"
# workaround for "error: non-constant-expression cannot be narrowed from type 'long' to 'int'"
"-Wno-c++11-narrowing"
]);
meta = {
description = "An open source full text search server";
homepage = http://sphinxsearch.com;