git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #140210 from 0x4A6F/master-pmacct

pmacct: 1.7.5 -> 1.7.6

commita93c568521d9b64a62f4309996df6c1ba12fc33d authorLassulus <github@lassul.us> dateThu 7 Oct 2021, 19:15 (5 years ago) parent16a5528fa3378e
3 files changed+73−33
pkgs/development/libraries/libcdada/default.nix+37 pkgs/tools/networking/pmacct/default.nix+34−33 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/libcdada/default.nixnew file+37
@@ -0,0 +1,37 @@
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+}
pkgs/tools/networking/pmacct/default.nix+34−33
@@ -1,55 +1,56 @@
1−{ lib, stdenv
1+{ lib
2+, stdenv
23, fetchFromGitHub
34, pkg-config
45, autoreconfHook
56, libtool
67, libpcap
7−
8+, libcdada
89# 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+}:
2317
2418stdenv.mkDerivation rec {
25− version = "1.7.5";
19+ version = "1.7.6";
2620 pname = "pmacct";
2721
2822 src = fetchFromGitHub {
2923 owner = "pmacct";
30− repo = pname;
24+ repo = "pmacct";
3125 rev = "v${version}";
32− sha256 = "17p5isrq5w58hvmzhc6akbd37ins3c95g0rvhhdm0v33khzxmran";
26+ sha256 = "0x1i75hwz44siqvn4i58jgji0zwrqgn6ayv89s9m9nh3b423nsiv";
3327 };
3428
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;
4243
43− MYSQL_CONFIG =
44− optionalString withMysql "${getDev libmysqlclient}/bin/mysql_config";
44+ MYSQL_CONFIG = lib.optionalString withMysql "${lib.getDev libmysqlclient}/bin/mysql_config";
4545
4646 configureFlags = [
4747 "--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";
5354
5455 meta = with lib; {
5556 description = "A small set of multi-purpose passive network monitoring tools";
pkgs/top-level/all-packages.nix+2
@@ -16954,6 +16954,8 @@ with pkgs;
1695416954
1695516955 libcerf = callPackage ../development/libraries/libcerf {};
1695616956
16957+ libcdada = callPackage ../development/libraries/libcdada { };
16958+
1695716959 libcdaudio = callPackage ../development/libraries/libcdaudio { };
1695816960
1695916961 libcddb = callPackage ../development/libraries/libcddb { };