summaryrefslogtreecommitdiff
path: root/overlays/uucp
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-01-04 19:47:12 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-01-04 19:47:12 +0100
commit7da07a5e1ff80d603163e660cfd6a4057e54f864 (patch)
tree31406073512ca685fa8d2fd5995f9530710d3cc2 /overlays/uucp
parent31bd460c5e4c41f9d383d867649d70cf7376919f (diff)
downloadnixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar
nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar.gz
nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar.bz2
nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar.xz
nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.zip
...
Diffstat (limited to 'overlays/uucp')
-rw-r--r--overlays/uucp/default.nix9
-rw-r--r--overlays/uucp/mailprogram.patch16
2 files changed, 25 insertions, 0 deletions
diff --git a/overlays/uucp/default.nix b/overlays/uucp/default.nix
new file mode 100644
index 00000000..4189dbcc
--- /dev/null
+++ b/overlays/uucp/default.nix
@@ -0,0 +1,9 @@
1{ final, prev, ... }: {
2 uucp = prev.uucp.overrideAttrs (oldAttrs: {
3 configureFlags = (oldAttrs.configureFlags or []) ++ ["--with-newconfigdir=/etc/uucp"];
4 patches = (oldAttrs.patches or []) ++ [
5 ./mailprogram.patch
6 ];
7 NIX_CFLAGS_COMPILE = "${oldAttrs.NIX_CFLAGS_COMPILE or ""} -Wno-error=incompatible-pointer-types";
8 });
9}
diff --git a/overlays/uucp/mailprogram.patch b/overlays/uucp/mailprogram.patch
new file mode 100644
index 00000000..89ac8f31
--- /dev/null
+++ b/overlays/uucp/mailprogram.patch
@@ -0,0 +1,16 @@
1 policy.h | 2 +-
2 1 file changed, 1 insertion(+), 1 deletion(-)
3
4diff --git a/policy.h b/policy.h
5index 5afe34b..8e92c8b 100644
6--- a/policy.h
7+++ b/policy.h
8@@ -240,7 +240,7 @@
9 the sendmail choice below. Otherwise, select one of the other
10 choices as appropriate. */
11 #if 1
12-#define MAIL_PROGRAM "/usr/lib/sendmail -t"
13+#define MAIL_PROGRAM "${config.security.wrapperDir}/sendmail -t"
14 /* #define MAIL_PROGRAM "/usr/sbin/sendmail -t" */
15 #define MAIL_PROGRAM_TO_BODY 1
16 #define MAIL_PROGRAM_SUBJECT_BODY 1