diff options
author | Christopher Baines <mail@cbaines.net> | 2020-04-13 13:54:22 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-04-13 13:54:22 +0100 |
commit | 656225cfeee36a268a2b14604eafbace3835d78f (patch) | |
tree | be5de201f6c523df9b3b8652791d9e74e8cc5cc0 | |
parent | 9263f271f5ddaae3dc8c01ddb73910a66937d721 (diff) | |
download | build-coordinator-656225cfeee36a268a2b14604eafbace3835d78f.tar build-coordinator-656225cfeee36a268a2b14604eafbace3835d78f.tar.gz |
Add a configuration value for a directory to store build outputs
-rw-r--r-- | guix-build-coordinator/config.scm.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/guix-build-coordinator/config.scm.in b/guix-build-coordinator/config.scm.in index 025f66d..69cc98e 100644 --- a/guix-build-coordinator/config.scm.in +++ b/guix-build-coordinator/config.scm.in @@ -26,6 +26,14 @@ (let ((config `((guix . "@guix@") + (builds-dir . ,(let ((install-dir + "/var/lib/guix-build-coordinator/builds") + (dev-dir + (string-append (getcwd) "/data/builds"))) + (if (file-exists? install-dir) + install-dir + dev-dir))) + (sqitch . "@sqitch@") (sqitch-psql . "@psql@") (sqitch-sqlite . "@sqlite3@") |