From 4c449e03b72ce44cd60bea6731d9c28a022119b4 Mon Sep 17 00:00:00 2001 From: Daniel Kuehn Date: Mon, 2 Oct 2017 16:55:26 +0200 Subject: [PATCH] sudo: Add optional dependency to SSSD, enabled by setting withSssd to true --- pkgs/tools/security/sudo/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/sudo/default.nix b/pkgs/tools/security/sudo/default.nix index 6f662206350f..1b32ad710071 100644 --- a/pkgs/tools/security/sudo/default.nix +++ b/pkgs/tools/security/sudo/default.nix @@ -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 = [