2018-11-14 16:01:41 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, zlib, libuuid, libossp_uuid, CoreFoundation, IOKit }:
|
2016-04-14 22:43:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec{
|
2018-11-14 16:01:41 +00:00
|
|
|
version = "1.11.0";
|
2016-04-14 22:43:01 +01:00
|
|
|
name = "netdata-${version}";
|
|
|
|
|
2018-11-14 16:01:41 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/netdata/netdata/releases/download/v${version}/netdata-v${version}.tar.gz";
|
|
|
|
sha256 = "17b14w34jif6bviw3s81imbazkvvafwxff7d5zjy6wicq88q8b64";
|
2016-04-14 22:43:01 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2018-11-14 16:01:41 +00:00
|
|
|
buildInputs = [ zlib ]
|
|
|
|
++ (if stdenv.isDarwin then [ libossp_uuid CoreFoundation IOKit ] else [ libuuid ]);
|
2016-04-14 22:43:01 +01:00
|
|
|
|
2018-10-12 09:53:36 +01:00
|
|
|
patches = [
|
|
|
|
./no-files-in-etc-and-var.patch
|
|
|
|
];
|
2016-10-25 15:23:19 +01:00
|
|
|
|
2018-10-12 09:57:45 +01:00
|
|
|
postInstall = stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
|
|
|
# rename this plugin so netdata will look for setuid wrapper
|
|
|
|
mv $out/libexec/netdata/plugins.d/apps.plugin \
|
|
|
|
$out/libexec/netdata/plugins.d/apps.plugin.org
|
|
|
|
'';
|
|
|
|
|
2016-10-25 15:23:19 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
2018-10-12 09:53:36 +01:00
|
|
|
"--sysconfdir=/etc"
|
2016-10-25 15:23:19 +01:00
|
|
|
];
|
|
|
|
|
2018-11-14 16:01:41 +00:00
|
|
|
postFixup = ''
|
|
|
|
rm -r $out/sbin
|
2016-10-14 11:05:42 +01:00
|
|
|
'';
|
2016-04-17 10:15:59 +01:00
|
|
|
|
2016-04-14 22:43:01 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Real-time performance monitoring tool";
|
2018-11-14 16:01:41 +00:00
|
|
|
homepage = https://my-netdata.io/;
|
2016-04-14 22:43:01 +01:00
|
|
|
license = licenses.gpl3;
|
2018-11-14 16:01:41 +00:00
|
|
|
platforms = platforms.unix;
|
2016-04-14 22:43:01 +01:00
|
|
|
maintainers = [ maintainers.lethalman ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|