From 0c97fffb153aa54a7730ec80e4543f9c1a92cf32 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Sun, 4 Oct 2020 13:17:59 -0400 Subject: [PATCH] bmon: fix cross-compilation $PKG_CONFIG must be an absolute path --- pkgs/tools/misc/bmon/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/misc/bmon/default.nix b/pkgs/tools/misc/bmon/default.nix index d99cce78bbf..a98b2075ada 100644 --- a/pkgs/tools/misc/bmon/default.nix +++ b/pkgs/tools/misc/bmon/default.nix @@ -16,6 +16,11 @@ stdenv.mkDerivation rec { buildInputs = [ ncurses libconfuse libnl ]; + preConfigure = '' + # Must be an absolute path + export PKG_CONFIG="$(command -v "$PKG_CONFIG")" + ''; + meta = with stdenv.lib; { description = "Network bandwidth monitor"; homepage = "https://github.com/tgraf/bmon";