linux-pam: disable audit when cross-compiling from darwin (#438635)

authored by Grimmauld and committed by GitHub 21ccf975 f164d80f

+5 -1
+5 -1
pkgs/by-name/li/linux-pam/package.nix
··· 8 8 gettext, 9 9 ninja, 10 10 audit, 11 + linuxHeaders, 11 12 libxcrypt, 12 13 nixosTests, 13 14 meson, ··· 21 22 docbook_xsl_ns, 22 23 nix-update-script, 23 24 withLogind ? lib.meta.availableOn stdenv.hostPlatform systemdLibs, 24 - withAudit ? lib.meta.availableOn stdenv.hostPlatform audit, 25 + withAudit ? 26 + lib.meta.availableOn stdenv.hostPlatform audit 27 + # cross-compilation only works from platforms with linux headers 28 + && lib.meta.availableOn stdenv.buildPlatform linuxHeaders, 25 29 }: 26 30 27 31 stdenv.mkDerivation (finalAttrs: {