From 2e8d275c2f118458fad7ac6a3cbd5b3fd66eb5ee Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 27 Apr 2025 21:01:55 +0200 Subject: [PATCH] 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: eba90bba6633 ("apparmor: 4.0.3 -> 4.1.0, rewrite") --- pkgs/by-name/li/libapparmor/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/li/libapparmor/package.nix b/pkgs/by-name/li/libapparmor/package.nix index d9d27fdd6b79..99aa886a8eaa 100644 --- a/pkgs/by-name/li/libapparmor/package.nix +++ b/pkgs/by-name/li/libapparmor/package.nix @@ -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,