sudo: Add optional dependency to SSSD, enabled by setting withSssd to true

This commit is contained in:
Daniel Kuehn 2017-10-02 16:55:26 +02:00 committed by Bjørn Forsman
parent b3b9ff4ba5
commit 4c449e03b7

View File

@ -1,6 +1,7 @@
{ stdenv, fetchurl, coreutils, pam, groff
{ stdenv, fetchurl, coreutils, pam, groff, sssd
, sendmailPath ? "/run/wrappers/bin/sendmail"
, withInsults ? false
, withSssd ? false
}:
stdenv.mkDerivation rec {
@ -30,6 +31,9 @@ stdenv.mkDerivation rec {
] ++ stdenv.lib.optional withInsults [
"--with-insults"
"--with-all-insults"
] ++ stdenv.lib.optional withSssd [
"--with-sssd"
"--with-sssd-lib=${sssd}/lib"
];
configureFlagsArray = [