From 99de53b79bb8642d1fc865b70a55bc4da9f0d669 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Mon, 27 Jul 2020 19:40:50 -0400 Subject: [PATCH] doas: add enablePAM option New option "withPAM" controls whether to build support for pluggable authetincation modules. Default value is "true", which correspond to existing behaviour. Futhermore, with default configuration, this change do not cause rebuild. --- pkgs/tools/security/doas/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/security/doas/default.nix b/pkgs/tools/security/doas/default.nix index baa2fc301a8911..6aa9759affd3f2 100644 --- a/pkgs/tools/security/doas/default.nix +++ b/pkgs/tools/security/doas/default.nix @@ -4,6 +4,7 @@ , bison , pam +, withPAM ? true , withTimestamp ? true }: @@ -23,6 +24,7 @@ stdenv.mkDerivation rec { configureFlags = [ (lib.optionalString withTimestamp "--with-timestamp") # to allow the "persist" setting + (lib.optionalString (!withPAM) "--without-pam") "--pamdir=${placeholder "out"}/etc/pam.d" ];