summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Brown <chloe.brown.00@outlook.com>2022-04-06 17:48:49 +0100
committerChloe Brown <chloe.brown.00@outlook.com>2022-04-06 17:48:49 +0100
commitf1e9eec996987b24f9c86be3e894591dfa3c6883 (patch)
treee81226192dcf3e6881590b53196278c6eb05a633
parent179a46b7eb9d9972ea6cb52e343c31375593dccf (diff)
Correct subtle errors in Agda build system.
100% guaranteed untested, much like the original.
-rw-r--r--yellowsquid/build-system/agda.scm13
1 files changed, 7 insertions, 6 deletions
diff --git a/yellowsquid/build-system/agda.scm b/yellowsquid/build-system/agda.scm
index d72bbcb..458ace0 100644
--- a/yellowsquid/build-system/agda.scm
+++ b/yellowsquid/build-system/agda.scm
@@ -31,7 +31,6 @@
(define* (lower name
#:key source inputs native-inputs outputs system target
(agda (default-agda))
- (agda-inputs '())
#:allow-other-keys
#:rest arguments)
(define private-keywords
@@ -40,13 +39,15 @@
(bag
(name name)
(system system)
- (host-inputs `(,@(if source
+ (target target)
+ (build-inputs `(,@(if source
`(("source" ,source))
'())
- ,@inputs
- ,@(standard-packages)))
- (build-inputs `(("agda" ,agda)
- ,@native-inputs))
+ ,@native-inputs
+ ,@(if target '() inputs)
+ ("agda" agda)
+ ,@(standard-packages)))
+ (host-inputs (if target inputs '()))
(outputs outputs)
(build agda-build)
(arguments (strip-keyword-arguments private-keywords arguments))))