diff options
-rw-r--r-- | mumi/config.scm.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mumi/config.scm.in b/mumi/config.scm.in index 23ca774..b0fa1a9 100644 --- a/mumi/config.scm.in +++ b/mumi/config.scm.in @@ -72,6 +72,16 @@ (string-replace dir "@prefix@" 0 (string-length "${prefix}")) dir))))) + (data-dir . ,(let ((maybe-dir + (string-append (getcwd) "/data"))) + (if (and (getenv "MUMI_UNINSTALLED") + (file-exists? maybe-dir)) + maybe-dir + (let ((dir "@localstatedir@/mumi/data")) + (if (string-prefix? "${prefix}" dir) + (string-replace dir "@prefix@" + 0 (string-length "${prefix}")) + dir))))) (host . "localhost") (port . 1234) (submission-email-address . "guix-patches@gnu.org") |