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
|
@ -604,8 +604,8 @@ Chez Scheme.")))
|
|||
(define makefile
|
||||
(string-append (getcwd) "/Makefile"))
|
||||
(define machine
|
||||
#$(chez-machine->threaded
|
||||
(nix-system->chez-machine)))
|
||||
#$(and=> (nix-system->chez-machine)
|
||||
chez-machine->threaded))
|
||||
(with-directory-excursion
|
||||
(search-input-directory outputs "/lib/stex")
|
||||
(invoke "make"
|
||||
|
|
Reference in New Issue