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 <christoph@c8h4.io>
This commit is contained in:
committed by
Artturin
parent
a61a2f7b7d
commit
1303bc206e
@@ -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")
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user