nixpkgs/pkgs/tools/system/netdata/default.nix

35 lines
847 B
Nix
Raw Normal View History

2016-10-14 10:05:42 +00:00
{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pkgconfig, libuuid }:
2016-04-14 21:43:01 +00:00
stdenv.mkDerivation rec{
2016-10-14 10:05:42 +00:00
version = "1.4.0";
2016-04-14 21:43:01 +00:00
name = "netdata-${version}";
src = fetchFromGitHub {
rev = "v${version}";
owner = "firehol";
repo = "netdata";
2016-10-14 10:05:42 +00:00
sha256 = "1wknxci2baj6f7rl8z8j7haaz122jmbb74aw7i3xbj2y61cs58n8";
2016-04-14 21:43:01 +00:00
};
2016-10-14 10:05:42 +00:00
buildInputs = [ autoreconfHook zlib pkgconfig libuuid ];
2016-04-14 21:43:01 +00:00
# Allow UI to load when running as non-root
patches = [ ./web_access.patch ];
2016-10-14 10:05:42 +00:00
preConfigure = ''
export ZLIB_CFLAGS=" "
export ZLIB_LIBS="-lz"
export UUID_CFLAGS=" "
export UUID_LIBS="-luuid"
'';
2016-04-14 21:43:01 +00: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 ];
};
}