apparmor: fix cross for different bit depths between build and host

Fixes #405780

Void also does not attempt to enable python on cross for armv7 [1].
This means apparmor-parser will never work on cross.

[1] https://github.com/void-linux/void-packages/blob/f8130e11caa853e434dc0ecdfb229d8fcd29c7de/srcpkgs/apparmor/template#L32-L36

authored by Grimmauld and committed by Alyssa Ross ce8e2c97 b654ff50

+5 -1
+5 -1
pkgs/by-name/li/libapparmor/package.nix
··· 12 stdenv.hostPlatform == stdenv.buildPlatform && lib.meta.availableOn stdenv.hostPlatform perl, 13 perl, 14 withPython ? 15 - !stdenv.hostPlatform.isStatic && lib.meta.availableOn stdenv.hostPlatform python3Packages.python, 16 python3Packages, 17 swig, 18 ncurses,
··· 12 stdenv.hostPlatform == stdenv.buildPlatform && lib.meta.availableOn stdenv.hostPlatform perl, 13 perl, 14 withPython ? 15 + # static can't load python libraries 16 + !stdenv.hostPlatform.isStatic 17 + && lib.meta.availableOn stdenv.hostPlatform python3Packages.python 18 + # m4 python include script fails if cpu bit depth is different across machines 19 + && stdenv.hostPlatform.parsed.cpu.bits == stdenv.buildPlatform.parsed.cpu.bits, 20 python3Packages, 21 swig, 22 ncurses,