Merge pull request #140210 from 0x4A6F/master-pmacct

pmacct: 1.7.5 -> 1.7.6

authored by Lassulus and committed by GitHub a93c5685 16a55282

+73 -33
+37
pkgs/development/libraries/libcdada/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + }: 6 + 7 + stdenv.mkDerivation rec { 8 + pname = "libcdada"; 9 + version = "0.3.5"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "msune"; 13 + repo = "libcdada"; 14 + rev = "v${version}"; 15 + sha256 = "0vcsf3s4fbw2w33jjc8b509kc0xb6ld58l8wfxgqwjqx5icfg1ps"; 16 + }; 17 + 18 + nativeBuildInputs = [ 19 + autoreconfHook 20 + ]; 21 + 22 + configureFlags = [ 23 + "--without-tests" 24 + "--without-examples" 25 + ]; 26 + 27 + meta = with lib; { 28 + description = "Library for basic data structures in C"; 29 + longDescription = '' 30 + Basic data structures in C: list, set, map/hashtable, queue... (libstdc++ wrapper) 31 + ''; 32 + homepage = "https://github.com/msune/libcdada"; 33 + license = licenses.bsd2; 34 + maintainers = with maintainers; [ _0x4A6F ]; 35 + platforms = platforms.unix; 36 + }; 37 + }
+34 -33
pkgs/tools/networking/pmacct/default.nix
··· 1 - { lib, stdenv 1 + { lib 2 + , stdenv 2 3 , fetchFromGitHub 3 4 , pkg-config 4 5 , autoreconfHook 5 6 , libtool 6 7 , libpcap 7 - 8 + , libcdada 8 9 # Optional Dependencies 9 - , zlib ? null 10 - , withJansson ? true, jansson ? null 11 - , withNflog ? true, libnetfilter_log ? null 12 - , withSQLite ? true, sqlite ? null 13 - , withPgSQL ? true, postgresql ? null 14 - , withMysql ? true, libmysqlclient ? null }: 15 - 16 - assert withJansson -> jansson != null; 17 - assert withNflog -> libnetfilter_log != null; 18 - assert withSQLite -> sqlite != null; 19 - assert withPgSQL -> postgresql != null; 20 - assert withMysql -> libmysqlclient != null; 21 - 22 - let inherit (lib) getDev optional optionalString; in 10 + , withJansson ? true, jansson 11 + , withNflog ? true, libnetfilter_log 12 + , withSQLite ? true, sqlite 13 + , withPgSQL ? true, postgresql 14 + , withMysql ? true, libmysqlclient, zlib 15 + , gnutlsSupport ? false, gnutls 16 + }: 23 17 24 18 stdenv.mkDerivation rec { 25 - version = "1.7.5"; 19 + version = "1.7.6"; 26 20 pname = "pmacct"; 27 21 28 22 src = fetchFromGitHub { 29 23 owner = "pmacct"; 30 - repo = pname; 24 + repo = "pmacct"; 31 25 rev = "v${version}"; 32 - sha256 = "17p5isrq5w58hvmzhc6akbd37ins3c95g0rvhhdm0v33khzxmran"; 26 + sha256 = "0x1i75hwz44siqvn4i58jgji0zwrqgn6ayv89s9m9nh3b423nsiv"; 33 27 }; 34 28 35 - nativeBuildInputs = [ autoreconfHook pkg-config libtool ]; 36 - buildInputs = [ libpcap ] 37 - ++ optional withJansson jansson 38 - ++ optional withNflog libnetfilter_log 39 - ++ optional withSQLite sqlite 40 - ++ optional withPgSQL postgresql 41 - ++ optional withMysql [ libmysqlclient zlib ]; 29 + nativeBuildInputs = [ 30 + autoreconfHook 31 + pkg-config 32 + libtool 33 + ]; 34 + buildInputs = [ 35 + libcdada 36 + libpcap 37 + ] ++ lib.optional withJansson jansson 38 + ++ lib.optional withNflog libnetfilter_log 39 + ++ lib.optional withSQLite sqlite 40 + ++ lib.optional withPgSQL postgresql 41 + ++ lib.optionals withMysql [ libmysqlclient zlib ] 42 + ++ lib.optional gnutlsSupport gnutls; 42 43 43 - MYSQL_CONFIG = 44 - optionalString withMysql "${getDev libmysqlclient}/bin/mysql_config"; 44 + MYSQL_CONFIG = lib.optionalString withMysql "${lib.getDev libmysqlclient}/bin/mysql_config"; 45 45 46 46 configureFlags = [ 47 47 "--with-pcap-includes=${libpcap}/include" 48 - ] ++ optional withJansson "--enable-jansson" 49 - ++ optional withNflog "--enable-nflog" 50 - ++ optional withSQLite "--enable-sqlite3" 51 - ++ optional withPgSQL "--enable-pgsql" 52 - ++ optional withMysql "--enable-mysql"; 48 + ] ++ lib.optional withJansson "--enable-jansson" 49 + ++ lib.optional withNflog "--enable-nflog" 50 + ++ lib.optional withSQLite "--enable-sqlite3" 51 + ++ lib.optional withPgSQL "--enable-pgsql" 52 + ++ lib.optional withMysql "--enable-mysql" 53 + ++ lib.optional gnutlsSupport "--enable-gnutls"; 53 54 54 55 meta = with lib; { 55 56 description = "A small set of multi-purpose passive network monitoring tools";
+2
pkgs/top-level/all-packages.nix
··· 16954 16954 16955 16955 libcerf = callPackage ../development/libraries/libcerf {}; 16956 16956 16957 + libcdada = callPackage ../development/libraries/libcdada { }; 16958 + 16957 16959 libcdaudio = callPackage ../development/libraries/libcdaudio { }; 16958 16960 16959 16961 libcddb = callPackage ../development/libraries/libcddb { };