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 gettext, 9 ninja, 10 audit, 11 libxcrypt, 12 nixosTests, 13 meson, ··· 21 docbook_xsl_ns, 22 nix-update-script, 23 withLogind ? lib.meta.availableOn stdenv.hostPlatform systemdLibs, 24 - withAudit ? lib.meta.availableOn stdenv.hostPlatform audit, 25 }: 26 27 stdenv.mkDerivation (finalAttrs: {
··· 8 gettext, 9 ninja, 10 audit, 11 + linuxHeaders, 12 libxcrypt, 13 nixosTests, 14 meson, ··· 22 docbook_xsl_ns, 23 nix-update-script, 24 withLogind ? lib.meta.availableOn stdenv.hostPlatform systemdLibs, 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, 29 }: 30 31 stdenv.mkDerivation (finalAttrs: {