Skip to content

Commit

Permalink
munin: add 'bc' (needed by 'acpi' and 'snort_pkts' plugins)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornfor committed Feb 25, 2017
1 parent 56a4640 commit 46e4422
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/servers/monitoring/munin/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, makeWrapper, which, coreutils, rrdtool, perl, perlPackages
, python, ruby, jre, nettools
, python, ruby, jre, nettools, bc
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 46e4422

Please sign in to comment.