collectd: fix build with lm_sensors

This commit is contained in:
Jörg Thalheim 2018-12-21 11:18:22 +01:00
parent 9d7e14fbf3
commit 46b75db767
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -1,41 +1,44 @@
{ stdenv, fetchurl, fetchpatch, darwin { stdenv, fetchurl, fetchpatch, darwin
# optional: , autoreconfHook
, pkgconfig ? null # most of the extra deps need pkgconfig to be found , pkgconfig
, curl ? null , curl
, iptables ? null , iptables
, jdk ? null , jdk
, libatasmart ? null , libapparmor
, libcredis ? null , libatasmart
, libdbi ? null , libcap_ng
, libgcrypt ? null , libcredis
, libmemcached ? null, cyrus_sasl ? null , libdbi
, libmicrohttpd ? null , libgcrypt
, libmodbus ? null , libmemcached, cyrus_sasl
, libnotify ? null, gdk_pixbuf ? null , libmicrohttpd
, liboping ? null , libmodbus
, libpcap ? null , libnotify, gdk_pixbuf
, libsigrok ? null , liboping
, libvirt ? null , libpcap
, libxml2 ? null , libsigrok
, libtool ? null , libvirt
, lm_sensors ? null , libxml2
, lvm2 ? null , libtool
, mysql ? null , lm_sensors
, postgresql ? null , lvm2
, protobufc ? null , mysql
, python ? null , numactl
, rabbitmq-c ? null , postgresql
, riemann_c_client ? null , protobufc
, rrdtool ? null , python
, udev ? null , rabbitmq-c
, varnish ? null , riemann_c_client
, yajl ? null , rrdtool
, net_snmp ? null , udev
, hiredis ? null , varnish
, libmnl ? null , yajl
, mosquitto ? null , net_snmp
, rdkafka ? null , hiredis
, mongoc ? null , libmnl
, mosquitto
, rdkafka
, mongoc
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "5.8.1"; version = "5.8.1";
@ -46,10 +49,14 @@ stdenv.mkDerivation rec {
sha256 = "1njk8hh56gb755xafsh7ahmqr9k2d4lam4ddj7s7fqz0gjigv5p7"; sha256 = "1njk8hh56gb755xafsh7ahmqr9k2d4lam4ddj7s7fqz0gjigv5p7";
}; };
# on 5.8.0: lvm2app.h:21:2: error: #warning "liblvm2app is deprecated, use D-Bus API instead." [-Werror=cpp] patches = [
NIX_CFLAGS_COMPILE = [ "-Wno-error=cpp" ]; (fetchpatch {
url = "https://github.com/rpv-tomsk/collectd/commit/d5a3c020d33cc33ee8049f54c7b4dffcd123bf83.patch";
sha256 = "1n65zw4d2k2bxapayaaw51ym7hy72a0cwi2abd8jgxcw3d0m5g15";
})
];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [ buildInputs = [
curl libdbi libgcrypt libmemcached curl libdbi libgcrypt libmemcached
cyrus_sasl libnotify gdk_pixbuf liboping libpcap libvirt cyrus_sasl libnotify gdk_pixbuf liboping libpcap libvirt
@ -60,12 +67,16 @@ stdenv.mkDerivation rec {
] ++ stdenv.lib.optionals stdenv.isLinux [ ] ++ stdenv.lib.optionals stdenv.isLinux [
iptables libatasmart libcredis libmodbus libsigrok iptables libatasmart libcredis libmodbus libsigrok
lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl
libapparmor numactl libcap_ng
] ++ stdenv.lib.optionals stdenv.isDarwin [ ] ++ stdenv.lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.IOKit darwin.apple_sdk.frameworks.IOKit
darwin.apple_sdk.frameworks.ApplicationServices darwin.apple_sdk.frameworks.ApplicationServices
]; ];
configureFlags = [ "--localstatedir=/var" ]; configureFlags = [
"--localstatedir=/var"
"--disable-werror"
];
# do not create directories in /var during installPhase # do not create directories in /var during installPhase
postConfigure = '' postConfigure = ''