collectd: fix darwin build (#29841)
- liboping supported on darwin since #29849 - libmicrohttpd supported on darwin since #29848
This commit is contained in:
parent
d5bf6a0d2c
commit
e713349922
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, fetchurl, darwin
|
||||||
# optional:
|
# optional:
|
||||||
, pkgconfig ? null # most of the extra deps need pkgconfig to be found
|
, pkgconfig ? null # most of the extra deps need pkgconfig to be found
|
||||||
, curl ? null
|
, curl ? null
|
||||||
@ -44,16 +44,22 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgconfig curl iptables libatasmart libcredis libdbi libgcrypt libmemcached
|
pkgconfig curl libdbi libgcrypt libmemcached
|
||||||
cyrus_sasl libmodbus libnotify gdk_pixbuf liboping libpcap libsigrok libvirt
|
cyrus_sasl libnotify gdk_pixbuf liboping libpcap libvirt
|
||||||
lm_sensors libxml2 lvm2 libmysql postgresql protobufc rabbitmq-c rrdtool
|
libxml2 libmysql postgresql protobufc rrdtool
|
||||||
varnish yajl jdk libtool python udev net_snmp hiredis libmnl libmicrohttpd
|
varnish yajl jdk libtool python hiredis libmicrohttpd
|
||||||
|
] ++ stdenv.lib.optionals stdenv.isLinux [
|
||||||
|
iptables libatasmart libcredis libmodbus libsigrok
|
||||||
|
lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl
|
||||||
|
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.apple_sdk.frameworks.IOKit
|
||||||
|
darwin.apple_sdk.frameworks.ApplicationServices
|
||||||
];
|
];
|
||||||
|
|
||||||
# for some reason libsigrok isn't auto-detected
|
# for some reason libsigrok isn't auto-detected
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--localstatedir=/var" ] ++
|
[ "--localstatedir=/var" ] ++
|
||||||
stdenv.lib.optional (libsigrok != null) "--with-libsigrok" ++
|
stdenv.lib.optional (stdenv.isLinux && libsigrok != null) "--with-libsigrok" ++
|
||||||
stdenv.lib.optional (python != null) "--with-python=${python}/bin/python";
|
stdenv.lib.optional (python != null) "--with-python=${python}/bin/python";
|
||||||
|
|
||||||
# do not create directories in /var during installPhase
|
# do not create directories in /var during installPhase
|
||||||
@ -71,7 +77,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Daemon which collects system performance statistics periodically";
|
description = "Daemon which collects system performance statistics periodically";
|
||||||
homepage = https://collectd.org;
|
homepage = https://collectd.org;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ bjornfor fpletz ];
|
maintainers = with maintainers; [ bjornfor fpletz ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user