From 7b30d6a8cb55ad4e8001acef0a5affcf22e4f383 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Thu, 30 Jul 2015 20:03:22 +0200 Subject: [PATCH] sudo: add withInsults flag (disabled by default) The feature Nix neither needs nor deserves. Requires the "insults" to be explicitly enabled in sudoers. This adds 1.6 MB to your sudo as some kind of cruel meta-joke. --- pkgs/tools/security/sudo/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/security/sudo/default.nix b/pkgs/tools/security/sudo/default.nix index 8c9d35333466..34e1731778f5 100644 --- a/pkgs/tools/security/sudo/default.nix +++ b/pkgs/tools/security/sudo/default.nix @@ -1,5 +1,6 @@ { stdenv, fetchurl, coreutils, pam, groff , sendmailPath ? "/var/setuid-wrappers/sendmail" +, withInsults ? false }: stdenv.mkDerivation rec { @@ -20,6 +21,9 @@ stdenv.mkDerivation rec { "--with-vardir=/var/db/sudo" "--with-logpath=/var/log/sudo.log" "--with-sendmail=${sendmailPath}" + ] ++ stdenv.lib.optional withInsults [ + "--with-insults" + "--with-all-insults" ]; configureFlagsArray = [