mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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:
parent
c0f59dc0bb
commit
7b30d6a8cb
1 changed files with 4 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue