From 45691701c3810953020ce2df2de8db03f726b6d3 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sat, 7 Dec 2024 04:46:39 +0000 Subject: [PATCH] pam: Use freebsd.pam on FreeBSD FreeBSD pam is based on openpam, but is not exactly the same. Use FreeBSD pam for better compatibility with existing FreeBSD configurations and code. --- pkgs/top-level/all-packages.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eab95fa0321c3..538c9c7da089f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12572,7 +12572,13 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; - pam = if stdenv.hostPlatform.isLinux then linux-pam else openpam; + pam = + if stdenv.hostPlatform.isLinux then + linux-pam + else if stdenv.hostPlatform.isFreeBSD then + freebsd.libpam + else + openpam; # pam_bioapi ( see http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader )