Skip to content

Commit

Permalink
Merge pull request #19864 from womfoo/fix/netdata-16.09
Browse files Browse the repository at this point in the history
netdata: allow execution without a config file (16.09)
  • Loading branch information
NeQuissimus authored Nov 2, 2016
2 parents 74b91a8 + 0e1066e commit d5b6594
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkgs/tools/system/netdata/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ stdenv.mkDerivation rec{

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;
Expand Down

0 comments on commit d5b6594

Please sign in to comment.