me
/
guix
Archived
1
0
Fork 0

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
Liliana Marie Prikler 2022-03-08 20:25:20 +01:00
parent 0a7c355e0a
commit b8fc916951
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 2 additions and 2 deletions

View File

@ -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"