summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}