From c0492d09ba1f91fce9f46e2340f18a28b735afcd Mon Sep 17 00:00:00 2001
From: Igor Pashev <pashev.igor@gmail.com>
Date: Mon, 31 Dec 2018 16:23:30 +0300
Subject: monitoringPlugins: set some dirs out of the prefix

This is to help copying plugins to other packages like `probes`
so that those new packages would not depend on the whole
`monitoringPlugins`.
---
 pkgs/monitoringPlugins/default.nix | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pkgs/monitoringPlugins/default.nix b/pkgs/monitoringPlugins/default.nix
index 92a82ba..512ff7a 100644
--- a/pkgs/monitoringPlugins/default.nix
+++ b/pkgs/monitoringPlugins/default.nix
@@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
   configurePhase = ''
     ./configure \
       --prefix=$out \
+      --sysconfdir=/etc \
+      --localstatedir=/var \
       --disable-nls \
       --with-ping-command="/run/wrappers/bin/ping -n -U -w %d -c %d %s" \
       --with-ping6-command="/run/wrappers/bin/ping6 -n -U -w %d -c %d %s" \
-- 
cgit v1.2.3