From e3dd2def91d06804640116af8abbe0c5b5949b05 Mon Sep 17 00:00:00 2001 From: Misha Gusarov Date: Sun, 28 Feb 2021 16:48:56 +0000 Subject: [PATCH] linux-pam: Optionally build with libxcrypt This enables support for new password hashing functions in PAM. A part of #112371. --- pkgs/os-specific/linux/pam/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/pam/default.nix b/pkgs/os-specific/linux/pam/default.nix index a697bb17a43..fb993699494 100644 --- a/pkgs/os-specific/linux/pam/default.nix +++ b/pkgs/os-specific/linux/pam/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, buildPackages, fetchurl, flex, cracklib, db4, gettext , nixosTests +, withLibxcrypt ? false, libxcrypt }: stdenv.mkDerivation rec { @@ -17,7 +18,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ flex ] ++ lib.optional stdenv.buildPlatform.isDarwin gettext; - buildInputs = [ cracklib db4 ]; + buildInputs = [ cracklib db4 ] + ++ lib.optional withLibxcrypt libxcrypt; enableParallelBuilding = true;