Refactor mkFlag out of old packages

This commit is contained in:
William A. Kennington III 2015-05-22 13:33:08 -07:00
parent 25a148fa19
commit 3117e0c897
12 changed files with 173 additions and 215 deletions

View File

@ -17,10 +17,6 @@ let
else if stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin" then "x86-64" else if stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin" then "x86-64"
else throw "ImageMagick is not supported on this platform."; else throw "ImageMagick is not supported on this platform.";
mkFlag = trueStr: falseStr: cond: val: "--${if cond then trueStr else falseStr}-${val}";
mkWith = mkFlag "with" "without";
mkEnable = mkFlag "enable" "disable";
hasX11 = libX11 != null && libXext != null && libXt != null; hasX11 = libX11 != null && libXext != null && libXt != null;
in in
@ -37,38 +33,38 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
configureFlags = [ configureFlags = [
(mkEnable (libcl != null) "opencl") (mkEnable (libcl != null) "opencl" null)
(mkWith true "modules") (mkWith true "modules" null)
(mkWith true "gcc-arch=${arch}") (mkWith true "gcc-arch" arch)
#(mkEnable true "hdri") This breaks some dependencies #(mkEnable true "hdri" null) This breaks some dependencies
(mkWith (perl != null) "perl") (mkWith (perl != null) "perl" null)
(mkWith (jemalloc != null) "jemalloc") (mkWith (jemalloc != null) "jemalloc" null)
(mkWith true "frozenpaths") (mkWith true "frozenpaths" null)
(mkWith (bzip2 != null) "bzlib") (mkWith (bzip2 != null) "bzlib" null)
(mkWith hasX11 "x") (mkWith hasX11 "x" null)
(mkWith (zlib != null) "zlib") (mkWith (zlib != null) "zlib" null)
(mkWith false "dps") (mkWith false "dps" null)
(mkWith (fftw != null) "fftw") (mkWith (fftw != null) "fftw" null)
(mkWith (libfpx != null) "fpx") (mkWith (libfpx != null) "fpx" null)
(mkWith (djvulibre != null) "djvu") (mkWith (djvulibre != null) "djvu" null)
(mkWith (fontconfig != null) "fontconfig") (mkWith (fontconfig != null) "fontconfig" null)
(mkWith (freetype != null) "freetype") (mkWith (freetype != null) "freetype" null)
(mkWith (ghostscript != null) "gslib") (mkWith (ghostscript != null) "gslib" null)
(mkWith (graphviz != null) "gvc") (mkWith (graphviz != null) "gvc" null)
(mkWith (jbigkit != null) "jbig") (mkWith (jbigkit != null) "jbig" null)
(mkWith (libjpeg != null) "jpeg") (mkWith (libjpeg != null) "jpeg" null)
(mkWith (lcms2 != null) "lcms2") (mkWith (lcms2 != null) "lcms2" null)
(mkWith false "lcms") (mkWith false "lcms" null)
(mkWith (openjpeg != null) "openjp2") (mkWith (openjpeg != null) "openjp2" null)
(mkWith (liblqr1 != null) "lqr") (mkWith (liblqr1 != null) "lqr" null)
(mkWith (xz != null) "lzma") (mkWith (xz != null) "lzma" null)
(mkWith (openexr != null) "openexr") (mkWith (openexr != null) "openexr" null)
(mkWith (pango != null) "pango") (mkWith (pango != null) "pango" null)
(mkWith (libpng != null) "png") (mkWith (libpng != null) "png" null)
(mkWith (librsvg != null) "rsvg") (mkWith (librsvg != null) "rsvg" null)
(mkWith (libtiff != null) "tiff") (mkWith (libtiff != null) "tiff" null)
(mkWith (libwebp != null) "webp") (mkWith (libwebp != null) "webp" null)
(mkWith (libxml2 != null) "xml") (mkWith (libxml2 != null) "xml" null)
] ++ optional (dejavu_fonts != null) "--with-dejavu-font-dir=${dejavu_fonts}/share/fonts/truetype/" ] ++ optional (dejavu_fonts != null) "--with-dejavu-font-dir=${dejavu_fonts}/share/fonts/truetype/"
++ optional (ghostscript != null) "--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts/"; ++ optional (ghostscript != null) "--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts/";

View File

@ -17,7 +17,7 @@ assert sndfileFileIOSupport -> (libsndfile != null);
#assert mp3xSupport -> (analyzerHooksSupport && (gtk1 != null)); #assert mp3xSupport -> (analyzerHooksSupport && (gtk1 != null));
let let
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}"; sndfileFileIO = if sndfileFileIOSupport then "sndfile" else "lame";
in in
with stdenv.lib; with stdenv.lib;
@ -39,17 +39,18 @@ stdenv.mkDerivation rec {
++ optional sndfileFileIOSupport libsndfile; ++ optional sndfileFileIOSupport libsndfile;
configureFlags = [ configureFlags = [
(mkFlag nasmSupport "nasm") (mkEnable nasmSupport "nasm" null)
(mkFlag cpmlSupport "cpml") (mkEnable cpmlSupport "cpml" null)
#(mkFlag efenceSupport "efence") #(mkEnable efenceSupport "efence" null)
(if sndfileFileIOSupport then "--with-fileio=sndfile" else "--with-fileio=lame") (mkWith true "fileio" sndfileFileIO)
(mkFlag analyzerHooksSupport "analyzer-hooks") (mkEnable analyzerHooksSupport "analyzer-hooks" null)
(mkFlag decoderSupport "decoder") (mkEnable decoderSupport "decoder" null)
(mkFlag frontendSupport "frontend") (mkEnable frontendSupport "frontend" null)
(mkFlag frontendSupport "dynamic-frontends") (mkEnable frontendSupport "dynamic-frontends" null)
#(mkFlag mp3xSupport "mp3x") #(mkEnable mp3xSupport "mp3x" null)
(mkFlag mp3rtpSupport "mp3rtp") (mkEnable mp3rtpSupport "mp3rtp" null)
(if debugSupport then "--enable-debug=alot" else "") ] ++ optional debugSupport [
(mkEnable true "debug" "alot")
]; ];
meta = { meta = {

View File

@ -13,10 +13,6 @@ assert encaSupport -> (enca != null);
assert fontconfigSupport -> (fontconfig != null); assert fontconfigSupport -> (fontconfig != null);
assert harfbuzzSupport -> (harfbuzz != null); assert harfbuzzSupport -> (harfbuzz != null);
let
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
in
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libass-${version}"; name = "libass-${version}";
@ -28,11 +24,11 @@ stdenv.mkDerivation rec {
}; };
configureFlags = [ configureFlags = [
(mkFlag encaSupport "enca") (mkEnable encaSupport "enca" null)
(mkFlag fontconfigSupport "fontconfig") (mkEnable fontconfigSupport "fontconfig" null)
(mkFlag harfbuzzSupport "harfbuzz") (mkEnable harfbuzzSupport "harfbuzz" null)
(mkFlag rasterizerSupport "rasterizer") (mkEnable rasterizerSupport "rasterizer" null)
(mkFlag largeTilesSupport "large-tiles") (mkEnable largeTilesSupport "large-tiles" null)
]; ];
nativeBuildInputs = [ pkgconfig yasm ]; nativeBuildInputs = [ pkgconfig yasm ];

View File

@ -9,10 +9,6 @@ assert documentationSupport -> doxygen != null && graphviz != null;
assert eventGUISupport -> cairo != null && glib != null && gtk3 != null; assert eventGUISupport -> cairo != null && glib != null && gtk3 != null;
assert testsSupport -> check != null && valgrind != null; assert testsSupport -> check != null && valgrind != null;
let
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
in
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libinput-0.15.0"; name = "libinput-0.15.0";
@ -23,9 +19,9 @@ stdenv.mkDerivation rec {
}; };
configureFlags = [ configureFlags = [
(mkFlag documentationSupport "documentation") (mkEnable documentationSupport "documentation" null)
(mkFlag eventGUISupport "event-gui") (mkEnable eventGUISupport "event-gui" null)
(mkFlag testsSupport "tests") (mkEnable testsSupport "tests" null)
]; ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];

View File

@ -20,10 +20,6 @@ assert jpegSupport -> (libjpeg != null);
assert tiffSupport -> (libtiff != null); assert tiffSupport -> (libtiff != null);
assert gifSupport -> (giflib != null); assert gifSupport -> (giflib != null);
let
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
in
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libwebp-${version}"; name = "libwebp-${version}";
@ -35,19 +31,19 @@ stdenv.mkDerivation rec {
}; };
configureFlags = [ configureFlags = [
(mkFlag threadingSupport "threading") (mkEnable threadingSupport "threading" null)
(mkFlag openglSupport "gl") (mkEnable openglSupport "gl" null)
(mkFlag pngSupport "png") (mkEnable pngSupport "png" null)
(mkFlag jpegSupport "jpeg") (mkEnable jpegSupport "jpeg" null)
(mkFlag tiffSupport "tiff") (mkEnable tiffSupport "tiff" null)
(mkFlag gifSupport "gif") (mkEnable gifSupport "gif" null)
#(mkFlag (wicSupport && stdenv.isCygwin) "wic") #(mkEnable (wicSupport && stdenv.isCygwin) "wic" null)
(mkFlag alignedSupport "aligned") (mkEnable alignedSupport "aligned" null)
(mkFlag swap16bitcspSupport "swap-16bit-csp") (mkEnable swap16bitcspSupport "swap-16bit-csp" null)
(mkFlag experimentalSupport "experimental") (mkEnable experimentalSupport "experimental" null)
(mkFlag libwebpmuxSupport "libwebpmux") (mkEnable libwebpmuxSupport "libwebpmux" null)
(mkFlag libwebpdemuxSupport "libwebpdemux") (mkEnable libwebpdemuxSupport "libwebpdemux" null)
(mkFlag libwebpdecoderSupport "libwebpdecoder") (mkEnable libwebpdecoderSupport "libwebpdecoder" null)
]; ];
buildInputs = [ ] buildInputs = [ ]

View File

@ -2,10 +2,6 @@
, parallel ? true , parallel ? true
}: }:
let
mkFlag = optset: flag: if optset then "-D${flag}=ON" else "-D${flag}=OFF";
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "stxxl-${version}"; name = "stxxl-${version}";
version = "1.4.1"; version = "1.4.1";
@ -21,7 +17,7 @@ stdenv.mkDerivation rec {
"-DBUILD_SHARED_LIBS=ON" "-DBUILD_SHARED_LIBS=ON"
"-DBUILD_STATIC_LIBS=OFF" "-DBUILD_STATIC_LIBS=OFF"
"-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_BUILD_TYPE=Release"
(mkFlag parallel "USE_GNU_PARALLEL") "-DUSE_GNU_PARALLEL=${if parallel then "ON" else "OFF"}"
]; ];
passthru = { passthru = {

View File

@ -6,10 +6,6 @@
# Require the optional to be enabled until upstream fixes or removes the configure flag # Require the optional to be enabled until upstream fixes or removes the configure flag
assert expat != null; assert expat != null;
let
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
in
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "wayland-${version}"; name = "wayland-${version}";
@ -21,7 +17,7 @@ stdenv.mkDerivation rec {
}; };
configureFlags = [ configureFlags = [
(mkFlag (expat != null) "scanner") (mkEnable (expat != null) "scanner" null)
]; ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];

View File

@ -25,13 +25,13 @@
, opusSupport ? true, libopus , opusSupport ? true, libopus
}: }:
with stdenv.lib;
let let
opt = stdenv.lib.optional; opt = optional;
mkFlag = c: f: if c then "--enable-${f}" else "--disable-${f}";
major = "0.19"; major = "0.19";
minor = "9"; minor = "9";
in
in stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "mpd-${major}.${minor}"; name = "mpd-${major}.${minor}";
src = fetchurl { src = fetchurl {
url = "http://www.musicpd.org/download/mpd/${major}/${name}.tar.xz"; url = "http://www.musicpd.org/download/mpd/${major}/${name}.tar.xz";
@ -68,33 +68,33 @@ in stdenv.mkDerivation rec {
++ opt opusSupport libopus; ++ opt opusSupport libopus;
configureFlags = configureFlags =
[ (mkFlag (!stdenv.isDarwin && alsaSupport) "alsa") [ (mkEnable (!stdenv.isDarwin && alsaSupport) "alsa" null)
(mkFlag flacSupport "flac") (mkEnable flacSupport "flac" null)
(mkFlag vorbisSupport "vorbis") (mkEnable vorbisSupport "vorbis" null)
(mkFlag vorbisSupport "vorbis-encoder") (mkEnable vorbisSupport "vorbis-encoder" null)
(mkFlag (!stdenv.isDarwin && madSupport) "mad") (mkEnable (!stdenv.isDarwin && madSupport) "mad" null)
(mkFlag mikmodSupport "mikmod") (mkEnable mikmodSupport "mikmod" null)
(mkFlag id3tagSupport "id3") (mkEnable id3tagSupport "id3" null)
(mkFlag shoutSupport "shout") (mkEnable shoutSupport "shout" null)
(mkFlag sqliteSupport "sqlite") (mkEnable sqliteSupport "sqlite" null)
(mkFlag curlSupport "curl") (mkEnable curlSupport "curl" null)
(mkFlag audiofileSupport "audiofile") (mkEnable audiofileSupport "audiofile" null)
(mkFlag bzip2Support "bzip2") (mkEnable bzip2Support "bzip2" null)
(mkFlag ffmpegSupport "ffmpeg") (mkEnable ffmpegSupport "ffmpeg" null)
(mkFlag fluidsynthSupport "fluidsynth") (mkEnable fluidsynthSupport "fluidsynth" null)
(mkFlag zipSupport "zzip") (mkEnable zipSupport "zzip" null)
(mkFlag samplerateSupport "lsr") (mkEnable samplerateSupport "lsr" null)
(mkFlag mmsSupport "mms") (mkEnable mmsSupport "mms" null)
(mkFlag mpg123Support "mpg123") (mkEnable mpg123Support "mpg123" null)
(mkFlag aacSupport "aac") (mkEnable aacSupport "aac" null)
(mkFlag pulseaudioSupport "pulse") (mkEnable pulseaudioSupport "pulse" null)
(mkFlag jackSupport "jack") (mkEnable jackSupport "jack" null)
(mkFlag stdenv.isDarwin "osx") (mkEnable stdenv.isDarwin "osx" null)
(mkFlag icuSupport "icu") (mkEnable icuSupport "icu" null)
(mkFlag gmeSupport "gme") (mkEnable gmeSupport "gme" null)
(mkFlag clientSupport "libmpdclient") (mkEnable clientSupport "libmpdclient" null)
(mkFlag opusSupport "opus") (mkEnable opusSupport "opus" null)
"--enable-debug" (mkEnable true "debug" null)
] ]
++ opt stdenv.isLinux ++ opt stdenv.isLinux
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"; "--with-systemdsystemunitdir=$(out)/etc/systemd/system";
@ -103,7 +103,7 @@ in stdenv.mkDerivation rec {
${if shoutSupport then "-lshout" else ""} ${if shoutSupport then "-lshout" else ""}
''; '';
meta = with stdenv.lib; { meta = {
description = "A flexible, powerful daemon for playing music"; description = "A flexible, powerful daemon for playing music";
homepage = http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki; homepage = http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki;
license = licenses.gpl2; license = licenses.gpl2;

View File

@ -37,18 +37,12 @@
assert kerberos != null -> zlib != null; assert kerberos != null -> zlib != null;
let let
mkFlag = trueStr: falseStr: cond: name: val:
if cond == null then null else
"--${if cond != false then trueStr else falseStr}${name}${if val != null && cond != false then "=${val}" else ""}";
mkEnable = mkFlag "enable-" "disable-";
mkWith = mkFlag "with-" "without-";
mkOther = mkFlag "" "" true;
bundledLibs = if kerberos != null && kerberos.implementation == "heimdal" then "NONE" else "com_err"; bundledLibs = if kerberos != null && kerberos.implementation == "heimdal" then "NONE" else "com_err";
hasGnutls = gnutls != null && libgcrypt != null && libgpgerror != null; hasGnutls = gnutls != null && libgcrypt != null && libgpgerror != null;
isKrb5OrNull = if kerberos != null && kerberos.implementation == "krb5" then true else null; isKrb5OrNull = if kerberos != null && kerberos.implementation == "krb5" then true else null;
hasInfinibandOrNull = if libibverbs != null && librdmacm != null then true else null; hasInfinibandOrNull = if libibverbs != null && librdmacm != null then true else null;
in in
with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "samba-4.2.1"; name = "samba-4.2.1";
@ -60,7 +54,7 @@ stdenv.mkDerivation rec {
patches = [ patches = [
./4.x-no-persistent-install.patch ./4.x-no-persistent-install.patch
./4.x-fix-ctdb-deps.patch ./4.x-fix-ctdb-deps.patch
] ++ stdenv.lib.optional (kerberos != null) ./4.x-heimdal-compat.patch; ] ++ optional (kerberos != null) ./4.x-heimdal-compat.patch;
buildInputs = [ buildInputs = [
python pkgconfig perl libxslt docbook_xsl docbook_xml_dtd_42 python pkgconfig perl libxslt docbook_xsl docbook_xml_dtd_42
@ -162,7 +156,7 @@ stdenv.mkDerivation rec {
find $out -type f -exec $SHELL -c "$SCRIPT" \; find $out -type f -exec $SHELL -c "$SCRIPT" \;
''; '';
meta = with stdenv.lib; { meta = {
homepage = http://www.samba.org/; homepage = http://www.samba.org/;
description = "The standard Windows interoperability suite of programs for Linux and Unix"; description = "The standard Windows interoperability suite of programs for Linux and Unix";
license = licenses.gpl3; license = licenses.gpl3;

View File

@ -28,13 +28,6 @@ assert cryptopp != null || (nss != null && nspr != null);
with stdenv.lib; with stdenv.lib;
let let
mkFlag = trueStr: falseStr: cond: name: val:
if cond == null then null else
"--${if cond != false then trueStr else falseStr}${name}${if val != null && cond != false then "=${val}" else ""}";
mkEnable = mkFlag "enable-" "disable-";
mkWith = mkFlag "with-" "without-";
mkOther = mkFlag "" "" true;
hasServer = snappy != null && leveldb != null; hasServer = snappy != null && leveldb != null;
hasMon = hasServer; hasMon = hasServer;
hasMds = hasServer; hasMds = hasServer;

View File

@ -3,9 +3,6 @@
}: }:
let let
mkFlag = pfxTrue: pfxFalse: cond: name: "--${if cond then pfxTrue else pfxFalse}-${name}";
mkEnable = mkFlag "enable" "disable";
mkWith = mkFlag "with" "without";
hasX = gtk2 != null || qt4 != null; hasX = gtk2 != null || qt4 != null;
in in
with stdenv.lib; with stdenv.lib;
@ -20,12 +17,12 @@ stdenv.mkDerivation rec {
buildInputs = [ libcap gtk2 ncurses qt4 ]; buildInputs = [ libcap gtk2 ncurses qt4 ];
configureFlags = [ configureFlags = [
(mkWith (libcap != null) "libcap") (mkWith (libcap != null) "libcap" null)
(mkWith (hasX) "x") (mkWith (hasX) "x" null)
(mkEnable (ncurses != null) "pinentry-curses") (mkEnable (ncurses != null) "pinentry-curses" null)
(mkEnable true "pinentry-tty") (mkEnable true "pinentry-tty" null)
(mkEnable (gtk2 != null) "pinentry-gtk2") (mkEnable (gtk2 != null) "pinentry-gtk2" null)
(mkEnable (qt4 != null) "pinentry-qt4") (mkEnable (qt4 != null) "pinentry-qt4" null)
]; ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];

View File

@ -7,9 +7,6 @@
}: }:
with stdenv.lib; with stdenv.lib;
let
mkFlag = cond: name: if cond then "--enable-${name}" else "--disable-${name}";
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "rsyslog-8.9.0"; name = "rsyslog-8.9.0";
@ -26,70 +23,70 @@ stdenv.mkDerivation rec {
] ++ stdenv.lib.optional stdenv.isLinux systemd; ] ++ stdenv.lib.optional stdenv.isLinux systemd;
configureFlags = [ configureFlags = [
"--sysconfdir=/etc" (mkOther "sysconfdir" "/etc")
"--localstatedir=/var" (mkOther "localstatedir" "/var")
"--with-systemdsystemunitdir=\${out}/etc/systemd/system" (mkWith true "systemdsystemunitdir" "\${out}/etc/systemd/system")
(mkFlag true "largefile") (mkEnable true "largefile" null)
(mkFlag true "regexp") (mkEnable true "regexp" null)
(mkFlag (krb5 != null) "gssapi-krb5") (mkEnable (krb5 != null) "gssapi-krb5" null)
(mkFlag true "klog") (mkEnable true "klog" null)
(mkFlag true "kmsg") (mkEnable true "kmsg" null)
(mkFlag (systemd != null) "imjournal") (mkEnable (systemd != null) "imjournal" null)
(mkFlag true "inet") (mkEnable true "inet" null)
(mkFlag (jemalloc != null) "jemalloc") (mkEnable (jemalloc != null) "jemalloc" null)
(mkFlag true "unlimited-select") (mkEnable true "unlimited-select" null)
(mkFlag true "usertools") (mkEnable true "usertools" null)
(mkFlag (libmysql != null) "mysql") (mkEnable (libmysql != null) "mysql" null)
(mkFlag (postgresql != null) "pgsql") (mkEnable (postgresql != null) "pgsql" null)
(mkFlag (libdbi != null) "libdbi") (mkEnable (libdbi != null) "libdbi" null)
(mkFlag (net_snmp != null) "snmp") (mkEnable (net_snmp != null) "snmp" null)
(mkFlag (libuuid != null) "uuid") (mkEnable (libuuid != null) "uuid" null)
(mkFlag (curl != null) "elasticsearch") (mkEnable (curl != null) "elasticsearch" null)
(mkFlag (gnutls != null) "gnutls") (mkEnable (gnutls != null) "gnutls" null)
(mkFlag (libgcrypt != null) "libgcrypt") (mkEnable (libgcrypt != null) "libgcrypt" null)
(mkFlag true "rsyslogrt") (mkEnable true "rsyslogrt" null)
(mkFlag true "rsyslogd") (mkEnable true "rsyslogd" null)
(mkFlag true "mail") (mkEnable true "mail" null)
(mkFlag (liblognorm != null) "mmnormalize") (mkEnable (liblognorm != null) "mmnormalize" null)
(mkFlag true "mmjsonparse") (mkEnable true "mmjsonparse" null)
(mkFlag true "mmaudit") (mkEnable true "mmaudit" null)
(mkFlag true "mmanon") (mkEnable true "mmanon" null)
(mkFlag true "mmutf8fix") (mkEnable true "mmutf8fix" null)
(mkFlag true "mmcount") (mkEnable true "mmcount" null)
(mkFlag true "mmsequence") (mkEnable true "mmsequence" null)
(mkFlag true "mmfields") (mkEnable true "mmfields" null)
(mkFlag true "mmpstrucdata") (mkEnable true "mmpstrucdata" null)
(mkFlag (openssl != null) "mmrfc5424addhmac") (mkEnable (openssl != null) "mmrfc5424addhmac" null)
(mkFlag (librelp != null) "relp") (mkEnable (librelp != null) "relp" null)
(mkFlag (libgt != null) "guardtime") (mkEnable (libgt != null) "guardtime" null)
(mkFlag (liblogging != null) "liblogging-stdlog") (mkEnable (liblogging != null) "liblogging-stdlog" null)
(mkFlag (liblogging != null) "rfc3195") (mkEnable (liblogging != null) "rfc3195" null)
(mkFlag true "imfile") (mkEnable true "imfile" null)
(mkFlag false "imsolaris") (mkEnable false "imsolaris" null)
(mkFlag true "imptcp") (mkEnable true "imptcp" null)
(mkFlag true "impstats") (mkEnable true "impstats" null)
(mkFlag true "omprog") (mkEnable true "omprog" null)
(mkFlag (libnet != null) "omudpspoof") (mkEnable (libnet != null) "omudpspoof" null)
(mkFlag true "omstdout") (mkEnable true "omstdout" null)
(mkFlag (systemd != null) "omjournal") (mkEnable (systemd != null) "omjournal" null)
(mkFlag true "pmlastmsg") (mkEnable true "pmlastmsg" null)
(mkFlag true "pmcisconames") (mkEnable true "pmcisconames" null)
(mkFlag true "pmciscoios") (mkEnable true "pmciscoios" null)
(mkFlag true "pmaixforwardedfrom") (mkEnable true "pmaixforwardedfrom" null)
(mkFlag true "pmsnare") (mkEnable true "pmsnare" null)
(mkFlag true "omruleset") (mkEnable true "omruleset" null)
(mkFlag true "omuxsock") (mkEnable true "omuxsock" null)
(mkFlag true "mmsnmptrapd") (mkEnable true "mmsnmptrapd" null)
(mkFlag (hadoop != null) "omhdfs") (mkEnable (hadoop != null) "omhdfs" null)
(mkFlag (rdkafka != null) "omkafka") (mkEnable (rdkafka != null) "omkafka" null)
(mkFlag (libmongo-client != null) "ommongodb") (mkEnable (libmongo-client != null) "ommongodb" null)
(mkFlag (czmq != null) "imzmq3") (mkEnable (czmq != null) "imzmq3" null)
(mkFlag (czmq != null) "imczmq") (mkEnable (czmq != null) "imczmq" null)
(mkFlag (czmq != null) "omzmq3") (mkEnable (czmq != null) "omzmq3" null)
(mkFlag (czmq != null) "omczmq") (mkEnable (czmq != null) "omczmq" null)
(mkFlag (rabbitmq-c != null) "omrabbitmq") (mkEnable (rabbitmq-c != null) "omrabbitmq" null)
(mkFlag (hiredis != null) "omhiredis") (mkEnable (hiredis != null) "omhiredis" null)
(mkFlag true "generate-man-pages") (mkEnable true "generate-man-pages" null)
]; ];
meta = { meta = {