Skip to content

Commit

Permalink
netdata: allow execution without a config file
Browse files Browse the repository at this point in the history
  • Loading branch information
womfoo committed Oct 25, 2016
1 parent 2bc7ca7 commit 0e1066e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkgs/tools/system/netdata/default.nix
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 0e1066e

Please sign in to comment.