1
1
{ stdenv , fetchurl , fetchpatch , darwin
2
- , autoreconfHook
3
- , pkgconfig
4
- , curl
5
- , iptables
6
- , jdk
7
- , libapparmor
8
- , libatasmart
9
- , libcap_ng
10
- , libcredis
11
- , libdbi
12
- , libgcrypt
13
- , libmemcached , cyrus_sasl
14
- , libmicrohttpd
15
- , libmodbus
16
- , libnotify , gdk_pixbuf
17
- , liboping
18
- , libpcap
19
- , libsigrok
20
- , libvirt
21
- , libxml2
22
- , libtool
23
- , lm_sensors
24
- , lvm2
25
- , mysql
26
- , numactl
27
- , postgresql
28
- , protobufc
29
- , python
30
- , rabbitmq-c
31
- , riemann_c_client
32
- , rrdtool
33
- , udev
34
- , varnish
35
- , yajl
36
- , net_snmp
37
- , hiredis
38
- , libmnl
39
- , mosquitto
40
- , rdkafka
41
- , mongoc
2
+ # optional:
3
+ , pkgconfig ? null # most of the extra deps need pkgconfig to be found
4
+ , curl ? null
5
+ , iptables ? null
6
+ , jdk ? null
7
+ , libatasmart ? null
8
+ , libcredis ? null
9
+ , libdbi ? null
10
+ , libgcrypt ? null
11
+ , libmemcached ? null , cyrus_sasl ? null
12
+ , libmicrohttpd ? null
13
+ , libmodbus ? null
14
+ , libnotify ? null , gdk_pixbuf ? null
15
+ , liboping ? null
16
+ , libpcap ? null
17
+ , libsigrok ? null
18
+ , libvirt ? null
19
+ , libxml2 ? null
20
+ , libtool ? null
21
+ , lm_sensors ? null
22
+ , lvm2 ? null
23
+ , mysql ? null
24
+ , postgresql ? null
25
+ , protobufc ? null
26
+ , python ? null
27
+ , rabbitmq-c ? null
28
+ , riemann_c_client ? null
29
+ , rrdtool ? null
30
+ , udev ? null
31
+ , varnish ? null
32
+ , yajl ? null
33
+ , net_snmp ? null
34
+ , hiredis ? null
35
+ , libmnl ? null
36
+ , mosquitto ? null
37
+ , rdkafka ? null
38
+ , mongoc ? null
42
39
} :
43
40
stdenv . mkDerivation rec {
44
41
version = "5.8.1" ;
@@ -49,14 +46,10 @@ stdenv.mkDerivation rec {
49
46
sha256 = "1njk8hh56gb755xafsh7ahmqr9k2d4lam4ddj7s7fqz0gjigv5p7" ;
50
47
} ;
51
48
52
- patches = [
53
- ( fetchpatch {
54
- url = "https://github.com/rpv-tomsk/collectd/commit/d5a3c020d33cc33ee8049f54c7b4dffcd123bf83.patch" ;
55
- sha256 = "1n65zw4d2k2bxapayaaw51ym7hy72a0cwi2abd8jgxcw3d0m5g15" ;
56
- } )
57
- ] ;
49
+ # on 5.8.0: lvm2app.h:21:2: error: #warning "liblvm2app is deprecated, use D-Bus API instead." [-Werror=cpp]
50
+ NIX_CFLAGS_COMPILE = [ "-Wno-error=cpp" ] ;
58
51
59
- nativeBuildInputs = [ pkgconfig autoreconfHook ] ;
52
+ nativeBuildInputs = [ pkgconfig ] ;
60
53
buildInputs = [
61
54
curl libdbi libgcrypt libmemcached
62
55
cyrus_sasl libnotify gdk_pixbuf liboping libpcap libvirt
@@ -67,16 +60,12 @@ stdenv.mkDerivation rec {
67
60
] ++ stdenv . lib . optionals stdenv . isLinux [
68
61
iptables libatasmart libcredis libmodbus libsigrok
69
62
lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl
70
- libapparmor numactl libcap_ng
71
63
] ++ stdenv . lib . optionals stdenv . isDarwin [
72
64
darwin . apple_sdk . frameworks . IOKit
73
65
darwin . apple_sdk . frameworks . ApplicationServices
74
66
] ;
75
67
76
- configureFlags = [
77
- "--localstatedir=/var"
78
- "--disable-werror"
79
- ] ;
68
+ configureFlags = [ "--localstatedir=/var" ] ;
80
69
81
70
# do not create directories in /var during installPhase
82
71
postConfigure = ''
0 commit comments