Merge pull request #57044 from nyanloutre/netdata-sensors
netdata: lm-sensor support
This commit is contained in:
commit
c9d22c2603
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, autoreconfHook, pkgconfig, zlib, libuuid, libossp_uuid, CoreFoundation, IOKit }:
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, zlib, libuuid, libossp_uuid, CoreFoundation, IOKit, lm_sensors }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec{
|
stdenv.mkDerivation rec{
|
||||||
version = "1.11.1";
|
version = "1.11.1";
|
||||||
@ -23,6 +23,11 @@ stdenv.mkDerivation rec{
|
|||||||
$out/libexec/netdata/plugins.d/apps.plugin.org
|
$out/libexec/netdata/plugins.d/apps.plugin.org
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
substituteInPlace collectors/python.d.plugin/python_modules/third_party/lm_sensors.py \
|
||||||
|
--replace 'ctypes.util.find_library("sensors")' '"${lm_sensors.out}/lib/libsensors${stdenv.hostPlatform.extensions.sharedLibrary}"'
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user