treewide: NIX_*_FLAGS -> string
This commit is contained in:
committed by
Jan Tojnar
parent
f9f46dc327
commit
313da176d3
@@ -33,7 +33,7 @@ let
|
||||
sed -i '/management/d' CMakeLists.txt
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
NIX_CFLAGS_COMPILE = toString [
|
||||
"-Wno-error=deprecated-declarations"
|
||||
"-Wno-error=int-in-bool-context"
|
||||
"-Wno-error=maybe-uninitialized"
|
||||
|
||||
@@ -25,9 +25,7 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# added to fix build with gcc7
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-Wno-error" "-fpermissive"
|
||||
];
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error -fpermissive";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile.am \
|
||||
|
||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ openssl zlib pcre libxml2 libxslt gd geoip postgresql ];
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = ["-I${libxml2.dev}/include/libxml2"];
|
||||
NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2";
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs .
|
||||
|
||||
@@ -84,10 +84,8 @@ stdenv.mkDerivation rec {
|
||||
++ optional (with stdenv.hostPlatform; isLinux || isFreeBSD) "--with-file-aio"
|
||||
++ map (mod: "--add-module=${mod.src}") modules;
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-I${libxml2.dev}/include/libxml2"
|
||||
"-Wno-error=implicit-fallthrough"
|
||||
] ++ optional stdenv.isDarwin "-Wno-error=deprecated-declarations";
|
||||
NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2 -Wno-error=implicit-fallthrough"
|
||||
+ optionalString stdenv.isDarwin " -Wno-error=deprecated-declarations";
|
||||
|
||||
preConfigure = (concatMapStringsSep "\n" (mod: mod.preConfigure or "") modules);
|
||||
|
||||
|
||||
@@ -76,11 +76,10 @@ stdenv.mkDerivation rec {
|
||||
"--with-table-redis"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE =
|
||||
stdenv.lib.optional enableRedis
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString enableRedis
|
||||
"-I${hiredis}/include/hiredis -lhiredis"
|
||||
++ stdenv.lib.optional enableMysql
|
||||
"-L${libmysqlclient}/lib/mysql";
|
||||
+ stdenv.lib.optionalString enableMysql
|
||||
" -L${libmysqlclient}/lib/mysql";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://www.opensmtpd.org/;
|
||||
|
||||
@@ -79,7 +79,7 @@ in stdenv.mkDerivation rec {
|
||||
make makefiles CCARGS='${ccargs}' AUXLIBS='${auxlibs}'
|
||||
'';
|
||||
|
||||
NIX_LDFLAGS = lib.optional withLDAP "-llber";
|
||||
NIX_LDFLAGS = lib.optionalString withLDAP "-llber";
|
||||
|
||||
installTargets = [ "non-interactive-package" ];
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ in stdenv.mkDerivation {
|
||||
--replace 'engine("wiredTiger")' 'engine("mmapv1")'
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.cc.isClang "-Wno-unused-command-line-argument";
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument";
|
||||
|
||||
sconsFlags = [
|
||||
"--release"
|
||||
|
||||
Reference in New Issue
Block a user