gnu: stex-bootstrap: Guard against unsupported systems.
The current implementation of nix-system->chez-machine et al. is rather brittle and fails in unexpected ways. In the meantime while a better replacement is being built, prevent falsy return values from causing errors, such as a failing “guix pull”. See <https://issues.guix.gnu.org/54292>. * gnu/packages/chez.scm (stex-bootstrap)[maybe-compile]: Use and=> to only call chez-machine->threaded if nix-system->chez-machine returns a truthy value.master
parent
0a7c355e0a
commit
b8fc916951
gnu/packages
|
@ -604,8 +604,8 @@ Chez Scheme.")))
|
||||||
(define makefile
|
(define makefile
|
||||||
(string-append (getcwd) "/Makefile"))
|
(string-append (getcwd) "/Makefile"))
|
||||||
(define machine
|
(define machine
|
||||||
#$(chez-machine->threaded
|
#$(and=> (nix-system->chez-machine)
|
||||||
(nix-system->chez-machine)))
|
chez-machine->threaded))
|
||||||
(with-directory-excursion
|
(with-directory-excursion
|
||||||
(search-input-directory outputs "/lib/stex")
|
(search-input-directory outputs "/lib/stex")
|
||||||
(invoke "make"
|
(invoke "make"
|
||||||
|
|
Reference in New Issue