tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pmacct: 1.7.5 -> 1.7.6
0x4A6F
4 years ago
fa3378e9
986159b8
+34
-33
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
pmacct
default.nix
+34
-33
pkgs/tools/networking/pmacct/default.nix
···
1
-
{ lib, stdenv
0
2
, fetchFromGitHub
3
, pkg-config
4
, autoreconfHook
5
, libtool
6
, libpcap
7
-
8
# 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
23
24
stdenv.mkDerivation rec {
25
-
version = "1.7.5";
26
pname = "pmacct";
27
28
src = fetchFromGitHub {
29
owner = "pmacct";
30
-
repo = pname;
31
rev = "v${version}";
32
-
sha256 = "17p5isrq5w58hvmzhc6akbd37ins3c95g0rvhhdm0v33khzxmran";
33
};
34
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 ];
0
0
0
0
0
0
0
42
43
-
MYSQL_CONFIG =
44
-
optionalString withMysql "${getDev libmysqlclient}/bin/mysql_config";
45
46
configureFlags = [
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";
0
53
54
meta = with lib; {
55
description = "A small set of multi-purpose passive network monitoring tools";
···
1
+
{ lib
2
+
, stdenv
3
, fetchFromGitHub
4
, pkg-config
5
, autoreconfHook
6
, libtool
7
, libpcap
8
+
, libcdada
9
# Optional Dependencies
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
+
}:
0
0
0
0
0
0
0
17
18
stdenv.mkDerivation rec {
19
+
version = "1.7.6";
20
pname = "pmacct";
21
22
src = fetchFromGitHub {
23
owner = "pmacct";
24
+
repo = "pmacct";
25
rev = "v${version}";
26
+
sha256 = "0x1i75hwz44siqvn4i58jgji0zwrqgn6ayv89s9m9nh3b423nsiv";
27
};
28
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;
43
44
+
MYSQL_CONFIG = lib.optionalString withMysql "${lib.getDev libmysqlclient}/bin/mysql_config";
0
45
46
configureFlags = [
47
"--with-pcap-includes=${libpcap}/include"
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";
54
55
meta = with lib; {
56
description = "A small set of multi-purpose passive network monitoring tools";