Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, openssl, libcap, curl, which 2, eventlog, pkg-config, glib, python3, systemd, perl 3, riemann_c_client, protobufc, pcre, libnet 4, json_c, libuuid, libivykis, mongoc, rabbitmq-c 5, libesmtp 6}: 7 8stdenv.mkDerivation rec { 9 pname = "syslog-ng"; 10 version = "3.38.1"; 11 12 src = fetchurl { 13 url = "https://github.com/${pname}/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.gz"; 14 sha256 = "sha256-VJH2htC4KbabLg/A1mpi9RmRqvruAFR1v6OPqzmUQfc="; 15 }; 16 17 nativeBuildInputs = [ pkg-config which ]; 18 19 buildInputs = [ 20 libcap 21 curl 22 openssl 23 eventlog 24 glib 25 perl 26 python3 27 systemd 28 riemann_c_client 29 protobufc 30 pcre 31 libnet 32 json_c 33 libuuid 34 libivykis 35 mongoc 36 rabbitmq-c 37 libesmtp 38 ]; 39 40 configureFlags = [ 41 "--enable-manpages" 42 "--enable-dynamic-linking" 43 "--enable-systemd" 44 "--enable-smtp" 45 "--with-ivykis=system" 46 "--with-librabbitmq-client=system" 47 "--with-mongoc=system" 48 "--with-jsonc=system" 49 "--with-systemd-journal=system" 50 "--with-systemdsystemunitdir=$(out)/etc/systemd/system" 51 "--without-compile-date" 52 ]; 53 54 outputs = [ "out" "man" ]; 55 56 enableParallelBuilding = true; 57 58 meta = with lib; { 59 homepage = "https://www.syslog-ng.com"; 60 description = "Next-generation syslogd with advanced networking and filtering capabilities"; 61 license = with licenses; [ gpl2Plus lgpl21Plus ]; 62 maintainers = with maintainers; [ ]; 63 platforms = platforms.linux; 64 }; 65}