From 1303bc206edb9992502bc302feceb2fe4690f59a Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Mon, 9 Oct 2023 12:03:00 +0200 Subject: blueman: fix cross-compilation blueman checks runtime deps during the configure. Fixes the following error when cross-compiling (in this case, to aarch64): ``` error: builder for '/nix/store/kzrxxlk0vpsz6hwhl4rgf0ankfp3639h-blueman-aarch64-unknown-linux-gnu-2.3.5.drv' failed with exit code 1; last 10 log lines: > checking for python version... 3.10 > checking for python platform... linux > checking for GNU default python prefix... ${prefix} > checking for GNU default python exec_prefix... ${exec_prefix} > checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.10/site-packages > checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.10/site-packages > checking for python-3.10... yes > checking for ifconfig... no > checking for ip... no > configure: error: ifconfig or ip not found, install net-tools or iproute2 For full logs, run 'nix log /nix/store/kzrxxlk0vpsz6hwhl4rgf0ankfp3639h-blueman-aarch64-unknown-linux-gnu-2.3.5.drv'. error: building '/nix/store/kzrxxlk0vpsz6hwhl4rgf0ankfp3639h-blueman-aarch64-unknown-linux-gnu-2.3.5.drv' failed ``` Signed-off-by: Christoph Heiss --- pkgs/tools/bluetooth/blueman/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkgs/tools/bluetooth') diff --git a/pkgs/tools/bluetooth/blueman/default.nix b/pkgs/tools/bluetooth/blueman/default.nix index 1fa18703459f3..962ad4b2e0f16 100644 --- a/pkgs/tools/bluetooth/blueman/default.nix +++ b/pkgs/tools/bluetooth/blueman/default.nix @@ -21,7 +21,7 @@ in stdenv.mkDerivation rec { ]; buildInputs = [ bluez gtk3 pythonPackages.python librsvg - gnome.adwaita-icon-theme iproute2 networkmanager ] + gnome.adwaita-icon-theme networkmanager ] ++ pythonPath ++ lib.optional withPulseAudio libpulseaudio; @@ -36,6 +36,8 @@ in stdenv.mkDerivation rec { configureFlags = [ "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system" "--with-systemduserunitdir=${placeholder "out"}/lib/systemd/user" + # Don't check for runtime dependency `ip` during the configure + "--disable-runtime-deps-check" (lib.enableFeature withPulseAudio "pulseaudio") ]; -- cgit 1.4.1