diff options
author | Wojtek Kosior <koszko@koszko.org> | 2024-01-11 17:30:20 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2024-01-22 21:18:53 +0100 |
commit | 389911673c12a3eb5adf8a2d02b1203579fb1c65 (patch) | |
tree | 8c1bf96581fa92ef224b29416d82715e71eec159 /gnu/packages | |
parent | cde0ea6ba5de37154ba8ce48d5d33fcd39f154c8 (diff) | |
download | guix-389911673c12a3eb5adf8a2d02b1203579fb1c65.tar.gz guix-389911673c12a3eb5adf8a2d02b1203579fb1c65.zip |
gnu: exim: Use /etc/exim.conf as the default config file.
* gnu/packages/mail.scm (exim)[arguments]<#:phases>['symlink-config-file]: New
phase.
Change-Id: I1be49e4a042b42e38ebff8aeff0e9cfc8724456b
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/mail.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 481d194c07..71d75402c9 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -1976,7 +1976,13 @@ delivery.") ;; same source tree and varies across different (parallel?) ;; builds. Make it a ‘constant number’ instead. (substitute* "src/version.c" - (("#include \"cnumber.h\"") "1"))))) + (("#include \"cnumber.h\"") "1")))) + (add-after 'install 'symlink-config-file + (lambda _ + (let ((config-path (string-append #$output + "/etc/exim.conf"))) + (delete-file config-path) + (symlink "/etc/exim.conf" config-path))))) #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) "INSTALL_ARG=-no_chown") |