about summary refs log tree commit diff
path: root/pkgs/by-name/sy/syslogng
diff options
context:
space:
mode:
authorAdrian Pistol <vifino@posteo.net>2024-01-26 22:58:35 +0100
committerAdrian Pistol <vifino@posteo.net>2024-01-26 22:58:35 +0100
commit177ec1bbdd378c3d09330ba6b17db9990fa353dd (patch)
tree0083747b6ffb9edad5fb02dbaa0091c4f2af5414 /pkgs/by-name/sy/syslogng
parent67702f10747a0c7bdeceffd35b0ce127c75805b6 (diff)
syslogng: 4.5.0 -> 4.6.0
Diffstat (limited to 'pkgs/by-name/sy/syslogng')
-rw-r--r--pkgs/by-name/sy/syslogng/package.nix126
1 files changed, 126 insertions, 0 deletions
diff --git a/pkgs/by-name/sy/syslogng/package.nix b/pkgs/by-name/sy/syslogng/package.nix
new file mode 100644
index 0000000000000..7e95f78b18889
--- /dev/null
+++ b/pkgs/by-name/sy/syslogng/package.nix
@@ -0,0 +1,126 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, autoconf-archive
+, autoreconfHook
+, bison
+, flex
+, openssl
+, libcap
+, curl
+, which
+, eventlog
+, pkg-config
+, glib
+, hiredis
+, systemd
+, perl
+, python3
+, riemann_c_client
+, protobufc
+, pcre
+, paho-mqtt-c
+, libnet
+, json_c
+, libuuid
+, libivykis
+, libxslt
+, docbook_xsl
+, pcre2
+, mongoc
+, rabbitmq-c
+, libesmtp
+, rdkafka
+, gperf
+}:
+let
+  python-deps = ps: with ps; [
+    boto3
+    botocore
+    cachetools
+    certifi
+    charset-normalizer
+    google-auth
+    idna
+    kubernetes
+    oauthlib
+    pyasn1
+    pyasn1-modules
+    python-dateutil
+    pyyaml
+    requests
+    requests-oauthlib
+    rsa
+    six
+    urllib3
+    websocket-client
+    ply
+  ];
+  py = python3.withPackages python-deps;
+in
+stdenv.mkDerivation rec {
+  pname = "syslog-ng";
+  version = "4.6.0";
+
+  src = fetchFromGitHub {
+    owner = "syslog-ng";
+    repo = "syslog-ng";
+    rev = "syslog-ng-${version}";
+    hash = "sha256-B9s7mprPpS4xc7mfJbsDaq2hB1rjYmuOnOnpu+NnMRs=";
+    fetchSubmodules = true;
+  };
+  nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config which bison flex libxslt perl gperf ];
+
+  buildInputs = [
+    libcap
+    curl
+    openssl
+    eventlog
+    glib
+    py
+    systemd
+    riemann_c_client
+    protobufc
+    pcre
+    libnet
+    json_c
+    libuuid
+    libivykis
+    mongoc
+    rabbitmq-c
+    libesmtp
+    pcre2
+    paho-mqtt-c
+    hiredis
+    rdkafka
+  ];
+
+  configureFlags = [
+    "--enable-manpages"
+    "--with-docbook=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
+    "--enable-dynamic-linking"
+    "--enable-systemd"
+    "--enable-smtp"
+    "--with-python-packages=none"
+    "--with-hiredis=system"
+    "--with-ivykis=system"
+    "--with-librabbitmq-client=system"
+    "--with-mongoc=system"
+    "--with-jsonc=system"
+    "--with-systemd-journal=system"
+    "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
+    "--without-compile-date"
+  ];
+
+  outputs = [ "out" "man" ];
+
+  enableParallelBuilding = true;
+
+  meta = with lib; {
+    homepage = "https://www.syslog-ng.com";
+    description = "Next-generation syslogd with advanced networking and filtering capabilities";
+    license = with licenses; [ gpl2Plus lgpl21Plus ];
+    maintainers = with maintainers; [ vifino ];
+    platforms = platforms.linux;
+  };
+}