mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
531e4b80c9
Only acts on one-line dependency lists.
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pkgconfig, libuuid }:
|
|
|
|
stdenv.mkDerivation rec{
|
|
version = "1.7.0";
|
|
name = "netdata-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "firehol";
|
|
repo = "netdata";
|
|
sha256 = "1fv01jnbgwbafsxavlji90zdqizn8m4nfg9ivc4sbi05j036bg6n";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
buildInputs = [ zlib libuuid ];
|
|
|
|
# Allow UI to load when running as non-root
|
|
patches = [ ./web_access.patch ];
|
|
|
|
# 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
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Real-time performance monitoring tool";
|
|
homepage = http://netdata.firehol.org;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.lethalman ];
|
|
};
|
|
|
|
}
|