lol

Merge pull request #247443 from amjoseph-nixpkgs/pr/openssh/withPAM

authored by

Artturi and committed by
GitHub
2dd22620 7e544420

+3 -2
+3 -2
pkgs/tools/networking/openssh/common.nix
··· 28 28 , hostname 29 29 , nixosTests 30 30 , withFIDO ? stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isMusl 31 + , withPAM ? stdenv.hostPlatform.isLinux 31 32 , linkOpenssl ? true 32 33 }: 33 34 ··· 71 72 buildInputs = [ zlib openssl libedit ] 72 73 ++ lib.optional withFIDO libfido2 73 74 ++ lib.optional withKerberos libkrb5 74 - ++ lib.optional stdenv.isLinux pam; 75 + ++ lib.optional withPAM pam; 75 76 76 77 preConfigure = '' 77 78 # Setting LD causes `configure' and `make' to disagree about which linker ··· 88 89 "--with-mantype=man" 89 90 "--with-libedit=yes" 90 91 "--disable-strip" 91 - (if stdenv.isLinux then "--with-pam" else "--without-pam") 92 + (lib.withFeature withPAM "pam") 92 93 ] ++ lib.optional (etcDir != null) "--sysconfdir=${etcDir}" 93 94 ++ lib.optional withFIDO "--with-security-key-builtin=yes" 94 95 ++ lib.optional withKerberos (assert libkrb5 != null; "--with-kerberos5=${libkrb5}")