2016-10-14 11:05:42 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pkgconfig, libuuid }:
|
2016-04-14 22:43:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec{
|
2018-08-04 23:05:48 +01:00
|
|
|
version = "1.10.0";
|
2016-04-14 22:43:01 +01:00
|
|
|
name = "netdata-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "firehol";
|
|
|
|
repo = "netdata";
|
2018-08-04 23:05:48 +01:00
|
|
|
sha256 = "02spfisabjkkgd9fairldlf84n83vbv2xafg0g5jrpfa972pjl9r";
|
2016-04-14 22:43:01 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ zlib libuuid ];
|
2016-04-14 22:43:01 +01:00
|
|
|
|
2016-10-25 15:23:19 +01:00
|
|
|
# Build will fail trying to create /var/{cache,lib,log}/netdata without this
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '/dist_.*_DATA = \.keep/d' src/Makefile.am
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
# App fails on runtime if the default config file is not detected
|
|
|
|
# The upstream installer does prepare an empty file too
|
|
|
|
postInstall = ''
|
|
|
|
touch $out/etc/netdata/netdata.conf
|
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";
|
|
|
|
homepage = http://netdata.firehol.org;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.lethalman ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|