diff options
author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2022-03-08 20:25:20 +0100 |
---|---|---|
committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2022-03-08 20:53:44 +0100 |
commit | b8fc9169515ef1a6d6037c84e30ad308e5418b6f (patch) | |
tree | c0aac061c5a0be0731c340cf3105202a2d1200b9 | |
parent | 0a7c355e0a11f800880a4d576e9cd40e5345c91d (diff) |
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.
-rw-r--r-- | gnu/packages/chez.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm index b3aadf3a78..d47225dbe5 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -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" |