diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-02-25 14:10:09 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-02-25 14:17:08 +0100 |
commit | 46e44222d6b656cc9830df0ae38a04c941d56f4b (patch) | |
tree | 30d8b27f55309f32648a7efb95a691be72612c53 /pkgs/servers | |
parent | 56a4640b0c77db1b87962298f6feecb7410b05e7 (diff) |
munin: add 'bc' (needed by 'acpi' and 'snort_pkts' plugins)
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/monitoring/munin/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/servers/monitoring/munin/default.nix b/pkgs/servers/monitoring/munin/default.nix index 3e4e778e238b..5d7d2e787735 100644 --- a/pkgs/servers/monitoring/munin/default.nix +++ b/pkgs/servers/monitoring/munin/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, makeWrapper, which, coreutils, rrdtool, perl, perlPackages -, python, ruby, jre, nettools +, python, ruby, jre, nettools, bc }: stdenv.mkDerivation rec { @@ -99,7 +99,8 @@ stdenv.mkDerivation rec { postFixup = '' echo "Removing references to /usr/{bin,sbin}/ from munin plugins..." - find "$out/lib/plugins" -type f -print0 | xargs -0 -L1 sed -i -e "s|/usr/bin/||g" -e "s|/usr/sbin/||g" + find "$out/lib/plugins" -type f -print0 | xargs -0 -L1 \ + sed -i -e "s|/usr/bin/||g" -e "s|/usr/sbin/||g" -e "s|\<bc\>|${bc}/bin/bc|g" if test -e $out/nix-support/propagated-native-build-inputs; then ln -s $out/nix-support/propagated-native-build-inputs $out/nix-support/propagated-user-env-packages |