diff options
Diffstat (limited to 'modules/uucp.nix')
-rw-r--r-- | modules/uucp.nix | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/modules/uucp.nix b/modules/uucp.nix index abca2acb..10f7297b 100644 --- a/modules/uucp.nix +++ b/modules/uucp.nix | |||
@@ -314,32 +314,7 @@ in { | |||
314 | in listToAttrs (map wrapper ["uucico" "cu" "uucp" "uuname" "uustat" "uux" "uuxqt"]); | 314 | in listToAttrs (map wrapper ["uucico" "cu" "uucp" "uuname" "uustat" "uux" "uuxqt"]); |
315 | 315 | ||
316 | nixpkgs.overlays = [(self: super: { | 316 | nixpkgs.overlays = [(self: super: { |
317 | uucp = super.lib.overrideDerivation super.uucp (oldAttrs: { | 317 | rmail = super.writeShellScriptBin "rmail" '' |
318 | configureFlags = "--with-newconfigdir=/etc/uucp"; | ||
319 | patches = [ | ||
320 | (super.writeText "mailprogram" '' | ||
321 | policy.h | 2 +- | ||
322 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
323 | |||
324 | diff --git a/policy.h b/policy.h | ||
325 | index 5afe34b..8e92c8b 100644 | ||
326 | --- a/policy.h | ||
327 | +++ b/policy.h | ||
328 | @@ -240,7 +240,7 @@ | ||
329 | the sendmail choice below. Otherwise, select one of the other | ||
330 | choices as appropriate. */ | ||
331 | #if 1 | ||
332 | -#define MAIL_PROGRAM "/usr/lib/sendmail -t" | ||
333 | +#define MAIL_PROGRAM "${config.security.wrapperDir}/sendmail -t" | ||
334 | /* #define MAIL_PROGRAM "/usr/sbin/sendmail -t" */ | ||
335 | #define MAIL_PROGRAM_TO_BODY 1 | ||
336 | #define MAIL_PROGRAM_SUBJECT_BODY 1 | ||
337 | '') | ||
338 | ]; | ||
339 | }); | ||
340 | rmail = super.writeScriptBin "rmail" '' | ||
341 | #!${super.stdenv.shell} | ||
342 | |||
343 | # Dummy UUCP rmail command for postfix/qmail systems | 318 | # Dummy UUCP rmail command for postfix/qmail systems |
344 | 319 | ||
345 | IFS=" " read junk from junk junk junk junk junk junk junk relay | 320 | IFS=" " read junk from junk junk junk junk junk junk junk relay |