Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

collectd: fix darwin build (#29841)

- liboping supported on darwin since #29849
- libmicrohttpd supported on darwin since #29848

(cherry picked from commit e71334992211c992efc46fa95f932a94fcdac7e4)

authored by volth and committed by Daiderd Jordan 75fe9507 e9e037f8

+13 -7
+13 -7
pkgs/tools/system/collectd/default.nix
··· 1 - { stdenv, fetchurl 2 # optional: 3 , pkgconfig ? null # most of the extra deps need pkgconfig to be found 4 , curl ? null ··· 44 }; 45 46 buildInputs = [ 47 - pkgconfig curl iptables libatasmart libcredis libdbi libgcrypt libmemcached 48 - cyrus_sasl libmodbus libnotify gdk_pixbuf liboping libpcap libsigrok libvirt 49 - lm_sensors libxml2 lvm2 libmysql postgresql protobufc rabbitmq-c rrdtool 50 - varnish yajl jdk libtool python udev net_snmp hiredis libmnl libmicrohttpd 51 ]; 52 53 # for some reason libsigrok isn't auto-detected 54 configureFlags = 55 [ "--localstatedir=/var" ] ++ 56 - stdenv.lib.optional (libsigrok != null) "--with-libsigrok" ++ 57 stdenv.lib.optional (python != null) "--with-python=${python}/bin/python"; 58 59 # do not create directories in /var during installPhase ··· 71 description = "Daemon which collects system performance statistics periodically"; 72 homepage = https://collectd.org; 73 license = licenses.gpl2; 74 - platforms = platforms.linux; 75 maintainers = with maintainers; [ bjornfor fpletz ]; 76 }; 77 }
··· 1 + { stdenv, fetchurl, darwin 2 # optional: 3 , pkgconfig ? null # most of the extra deps need pkgconfig to be found 4 , curl ? null ··· 44 }; 45 46 buildInputs = [ 47 + pkgconfig curl libdbi libgcrypt libmemcached 48 + cyrus_sasl libnotify gdk_pixbuf liboping libpcap libvirt 49 + libxml2 libmysql postgresql protobufc rrdtool 50 + varnish yajl jdk libtool python hiredis libmicrohttpd 51 + ] ++ stdenv.lib.optionals stdenv.isLinux [ 52 + iptables libatasmart libcredis libmodbus libsigrok 53 + lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl 54 + ] ++ stdenv.lib.optionals stdenv.isDarwin [ 55 + darwin.apple_sdk.frameworks.IOKit 56 + darwin.apple_sdk.frameworks.ApplicationServices 57 ]; 58 59 # for some reason libsigrok isn't auto-detected 60 configureFlags = 61 [ "--localstatedir=/var" ] ++ 62 + stdenv.lib.optional (stdenv.isLinux && libsigrok != null) "--with-libsigrok" ++ 63 stdenv.lib.optional (python != null) "--with-python=${python}/bin/python"; 64 65 # do not create directories in /var during installPhase ··· 77 description = "Daemon which collects system performance statistics periodically"; 78 homepage = https://collectd.org; 79 license = licenses.gpl2; 80 + platforms = platforms.unix; 81 maintainers = with maintainers; [ bjornfor fpletz ]; 82 }; 83 }