[ci] add build.scm script
Signed-off-by: SouthFox <master@southfox.me>
This commit is contained in:
parent
21ced433df
commit
86d0dd70fc
1 changed files with 19 additions and 0 deletions
19
utils/build.scm
Normal file
19
utils/build.scm
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
(use-modules (guix discovery)
|
||||||
|
(gnu packages)
|
||||||
|
(guix packages)
|
||||||
|
(ice-9 popen))
|
||||||
|
|
||||||
|
(define fox-packages
|
||||||
|
(string-join (map (lambda (p) (package-name p))
|
||||||
|
(fold-packages
|
||||||
|
(lambda (a b)
|
||||||
|
(cons a b))
|
||||||
|
'() (scheme-modules "modules")))
|
||||||
|
" "))
|
||||||
|
|
||||||
|
(define build-command
|
||||||
|
(string-join `("guix" "build" "-L" "modules" ,fox-packages) " "))
|
||||||
|
|
||||||
|
(let ((port (open-output-pipe build-command)))
|
||||||
|
(if (not (eqv? 0 (status:exit-val (close-pipe port))))
|
||||||
|
(error "Something wrong")))
|
Loading…
Reference in a new issue