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.
This commit is contained in:
Tobias Geerinckx-Rice 2015-07-30 20:03:22 +02:00
parent c0f59dc0bb
commit 7b30d6a8cb

View file

@ -1,5 +1,6 @@
{ stdenv, fetchurl, coreutils, pam, groff { stdenv, fetchurl, coreutils, pam, groff
, sendmailPath ? "/var/setuid-wrappers/sendmail" , sendmailPath ? "/var/setuid-wrappers/sendmail"
, withInsults ? false
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -20,6 +21,9 @@ stdenv.mkDerivation rec {
"--with-vardir=/var/db/sudo" "--with-vardir=/var/db/sudo"
"--with-logpath=/var/log/sudo.log" "--with-logpath=/var/log/sudo.log"
"--with-sendmail=${sendmailPath}" "--with-sendmail=${sendmailPath}"
] ++ stdenv.lib.optional withInsults [
"--with-insults"
"--with-all-insults"
]; ];
configureFlagsArray = [ configureFlagsArray = [