summaryrefslogtreecommitdiff
path: root/custom/uucp.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-05-04 16:01:10 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-05-04 16:01:10 +0200
commit21b3049216906755f7fc1b6e2d1ccb2394330014 (patch)
tree84923f1d5a3b61c56bee3e1f0c43f15ed5d54f93 /custom/uucp.nix
parent431913a24b065327e64b01ffc3a41f70d426680f (diff)
downloadnixos-21b3049216906755f7fc1b6e2d1ccb2394330014.tar
nixos-21b3049216906755f7fc1b6e2d1ccb2394330014.tar.gz
nixos-21b3049216906755f7fc1b6e2d1ccb2394330014.tar.bz2
nixos-21b3049216906755f7fc1b6e2d1ccb2394330014.tar.xz
nixos-21b3049216906755f7fc1b6e2d1ccb2394330014.zip
patch uucp
Diffstat (limited to 'custom/uucp.nix')
-rw-r--r--custom/uucp.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix
index 86a2078b..e914cf5c 100644
--- a/custom/uucp.nix
+++ b/custom/uucp.nix
@@ -191,6 +191,26 @@ in {
191 nixpkgs.config.packageOverrides = pkgs: with pkgs; { 191 nixpkgs.config.packageOverrides = pkgs: with pkgs; {
192 uucp = stdenv.lib.overrideDerivation uucp (oldAttrs: { 192 uucp = stdenv.lib.overrideDerivation uucp (oldAttrs: {
193 configureFlags = "--with-newconfigdir=/etc/uucp"; 193 configureFlags = "--with-newconfigdir=/etc/uucp";
194 patches = [
195 (pkgs.writeText "mailprogram" ''
196 policy.h | 2 +-
197 1 file changed, 1 insertion(+), 1 deletion(-)
198
199 diff --git a/policy.h b/policy.h
200 index 5afe34b..8e92c8b 100644
201 --- a/policy.h
202 +++ b/policy.h
203 @@ -240,7 +240,7 @@
204 the sendmail choice below. Otherwise, select one of the other
205 choices as appropriate. */
206 #if 1
207 -#define MAIL_PROGRAM "/usr/lib/sendmail -t"
208 +#define MAIL_PROGRAM "/var/setuid-wrapper/sendmail -t"
209 /* #define MAIL_PROGRAM "/usr/sbin/sendmail -t" */
210 #define MAIL_PROGRAM_TO_BODY 1
211 #define MAIL_PROGRAM_SUBJECT_BODY 1
212 '')
213 ];
194 }); 214 });
195 rmail = pkgs.writeScriptBin "rmail" '' 215 rmail = pkgs.writeScriptBin "rmail" ''
196 #!${pkgs.stdenv.shell} 216 #!${pkgs.stdenv.shell}