libapparmor: fix static

The Python bindings were recently enabled when cross compiling, but it
still doesn't make sense to build them (a shared library) in
pkgsStatic.

Fixes: eba90bba66 ("apparmor: 4.0.3 -> 4.1.0, rewrite")
This commit is contained in:
Alyssa Ross
2025-04-27 21:01:55 +02:00
parent ab3f9deacb
commit 2e8d275c2f

View File

@@ -11,7 +11,8 @@
withPerl ?
stdenv.hostPlatform == stdenv.buildPlatform && lib.meta.availableOn stdenv.hostPlatform perl,
perl,
withPython ? lib.meta.availableOn stdenv.hostPlatform python3Packages.python,
withPython ?
!stdenv.hostPlatform.isStatic && lib.meta.availableOn stdenv.hostPlatform python3Packages.python,
python3Packages,
swig,
ncurses,