Unverified Commit 89bced95 authored by Philip Taron's avatar Philip Taron
Browse files

rsyslog: remove with statements

parent 8e8bfb14
Loading
Loading
Loading
Loading
+72 −72
Original line number Diff line number Diff line
@@ -104,91 +104,91 @@ stdenv.mkDerivation rec {
  ++ lib.optional withMysql libmysqlclient
  ++ lib.optional withSystemd systemd;

  configureFlags = with lib; [
  configureFlags = [
    "--sysconfdir=/etc"
    "--localstatedir=/var"
    "--with-systemdsystemunitdir=\${out}/etc/systemd/system"
    (enableFeature true "largefile")
    (enableFeature true "regexp")
    (enableFeature withKrb5 "gssapi-krb5")
    (enableFeature true "klog")
    (enableFeature true "kmsg")
    (enableFeature withSystemd "imjournal")
    (enableFeature true "inet")
    (enableFeature withJemalloc "jemalloc")
    (enableFeature true "unlimited-select")
    (enableFeature withCurl "clickhouse")
    (enableFeature false "debug")
    (enableFeature false "debug-symbols")
    (enableFeature true "debugless")
    (enableFeature false "valgrind")
    (enableFeature false "diagtools")
    (enableFeature withCurl "fmhttp")
    (enableFeature true "usertools")
    (enableFeature withMysql "mysql")
    (enableFeature withPostgres "pgsql")
    (enableFeature withDbi "libdbi")
    (enableFeature withNetSnmp "snmp")
    (enableFeature withUuid "uuid")
    (enableFeature withCurl "elasticsearch")
    (enableFeature withGnutls "gnutls")
    (enableFeature withGcrypt "libgcrypt")
    (enableFeature true "rsyslogrt")
    (enableFeature true "rsyslogd")
    (enableFeature true "mail")
    (enableFeature withLognorm "mmnormalize")
    (enableFeature withMaxminddb "mmdblookup")
    (enableFeature true "mmjsonparse")
    (enableFeature true "mmaudit")
    (enableFeature true "mmanon")
    (enableFeature true "mmutf8fix")
    (enableFeature true "mmcount")
    (enableFeature true "mmsequence")
    (enableFeature true "mmfields")
    (enableFeature true "mmpstrucdata")
    (enableFeature withOpenssl "mmrfc5424addhmac")
    (enableFeature withRelp "relp")
    (enableFeature withKsi "ksi-ls12")
    (enableFeature withLogging "liblogging-stdlog")
    (enableFeature withLogging "rfc3195")
    (enableFeature true "imfile")
    (enableFeature false "imsolaris")
    (enableFeature true "imptcp")
    (enableFeature true "impstats")
    (enableFeature true "omprog")
    (enableFeature withNet "omudpspoof")
    (enableFeature true "omstdout")
    (enableFeature withSystemd "omjournal")
    (enableFeature true "pmlastmsg")
    (enableFeature true "pmcisconames")
    (enableFeature true "pmciscoios")
    (enableFeature true "pmaixforwardedfrom")
    (enableFeature true "pmsnare")
    (enableFeature true "omruleset")
    (enableFeature true "omuxsock")
    (enableFeature true "mmsnmptrapd")
    (enableFeature withHadoop "omhdfs")
    (enableFeature withRdkafka "omkafka")
    (enableFeature withMongo "ommongodb")
    (enableFeature withCzmq "imczmq")
    (enableFeature withCzmq "omczmq")
    (enableFeature withRabbitmq "omrabbitmq")
    (enableFeature withHiredis "omhiredis")
    (enableFeature withCurl "omhttp")
    (enableFeature true "generate-man-pages")
    (lib.enableFeature true "largefile")
    (lib.enableFeature true "regexp")
    (lib.enableFeature withKrb5 "gssapi-krb5")
    (lib.enableFeature true "klog")
    (lib.enableFeature true "kmsg")
    (lib.enableFeature withSystemd "imjournal")
    (lib.enableFeature true "inet")
    (lib.enableFeature withJemalloc "jemalloc")
    (lib.enableFeature true "unlimited-select")
    (lib.enableFeature withCurl "clickhouse")
    (lib.enableFeature false "debug")
    (lib.enableFeature false "debug-symbols")
    (lib.enableFeature true "debugless")
    (lib.enableFeature false "valgrind")
    (lib.enableFeature false "diagtools")
    (lib.enableFeature withCurl "fmhttp")
    (lib.enableFeature true "usertools")
    (lib.enableFeature withMysql "mysql")
    (lib.enableFeature withPostgres "pgsql")
    (lib.enableFeature withDbi "libdbi")
    (lib.enableFeature withNetSnmp "snmp")
    (lib.enableFeature withUuid "uuid")
    (lib.enableFeature withCurl "elasticsearch")
    (lib.enableFeature withGnutls "gnutls")
    (lib.enableFeature withGcrypt "libgcrypt")
    (lib.enableFeature true "rsyslogrt")
    (lib.enableFeature true "rsyslogd")
    (lib.enableFeature true "mail")
    (lib.enableFeature withLognorm "mmnormalize")
    (lib.enableFeature withMaxminddb "mmdblookup")
    (lib.enableFeature true "mmjsonparse")
    (lib.enableFeature true "mmaudit")
    (lib.enableFeature true "mmanon")
    (lib.enableFeature true "mmutf8fix")
    (lib.enableFeature true "mmcount")
    (lib.enableFeature true "mmsequence")
    (lib.enableFeature true "mmfields")
    (lib.enableFeature true "mmpstrucdata")
    (lib.enableFeature withOpenssl "mmrfc5424addhmac")
    (lib.enableFeature withRelp "relp")
    (lib.enableFeature withKsi "ksi-ls12")
    (lib.enableFeature withLogging "liblogging-stdlog")
    (lib.enableFeature withLogging "rfc3195")
    (lib.enableFeature true "imfile")
    (lib.enableFeature false "imsolaris")
    (lib.enableFeature true "imptcp")
    (lib.enableFeature true "impstats")
    (lib.enableFeature true "omprog")
    (lib.enableFeature withNet "omudpspoof")
    (lib.enableFeature true "omstdout")
    (lib.enableFeature withSystemd "omjournal")
    (lib.enableFeature true "pmlastmsg")
    (lib.enableFeature true "pmcisconames")
    (lib.enableFeature true "pmciscoios")
    (lib.enableFeature true "pmaixforwardedfrom")
    (lib.enableFeature true "pmsnare")
    (lib.enableFeature true "omruleset")
    (lib.enableFeature true "omuxsock")
    (lib.enableFeature true "mmsnmptrapd")
    (lib.enableFeature withHadoop "omhdfs")
    (lib.enableFeature withRdkafka "omkafka")
    (lib.enableFeature withMongo "ommongodb")
    (lib.enableFeature withCzmq "imczmq")
    (lib.enableFeature withCzmq "omczmq")
    (lib.enableFeature withRabbitmq "omrabbitmq")
    (lib.enableFeature withHiredis "omhiredis")
    (lib.enableFeature withCurl "omhttp")
    (lib.enableFeature true "generate-man-pages")
  ];

  passthru.tests = {
    nixos-rsyslogd = nixosTests.rsyslogd;
  };

  meta = with lib; {
  meta = {
    homepage = "https://www.rsyslog.com/";
    description = "Enhanced syslog implementation";
    mainProgram = "rsyslogd";
    changelog = "https://raw.githubusercontent.com/rsyslog/rsyslog/v${version}/ChangeLog";
    license = licenses.gpl3Only;
    platforms = platforms.linux;
    license = lib.licenses.gpl3Only;
    platforms = lib.platforms.linux;
    maintainers = [ ];
  };
}