aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-04-13 13:54:22 +0100
committerChristopher Baines <mail@cbaines.net>2020-04-13 13:54:22 +0100
commit656225cfeee36a268a2b14604eafbace3835d78f (patch)
treebe5de201f6c523df9b3b8652791d9e74e8cc5cc0
parent9263f271f5ddaae3dc8c01ddb73910a66937d721 (diff)
downloadbuild-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.in8
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@")