diff options
author | Wojtek Kosior <koszko@koszko.org> | 2024-01-11 17:30:20 +0100 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2024-09-04 21:02:05 +0200 |
commit | 6128f1cf80e1bfda6bdc2338fcfff44b4f0285c6 (patch) | |
tree | 0d2a761bd7a8fa129f62115613978cd5887918ba /gnu | |
parent | 70f9ae23b1c5db4497401b207046c11af0b3bf0d (diff) | |
download | guix-6128f1cf80e1bfda6bdc2338fcfff44b4f0285c6.tar.gz guix-6128f1cf80e1bfda6bdc2338fcfff44b4f0285c6.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')
-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 258e69341e..30fa194df3 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -2067,7 +2067,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") |