gnu: fpc: Lazily evaluate the error case.

* gnu/packages/pascal.scm (fpc)[native-inputs]: Defer evaluating the match
directive; the error condition would previously be eagerly evaluated and cause
Guix to fail on non-intel machines.
This commit is contained in:
Maxim Cournoyer 2021-11-12 16:55:46 -05:00
parent 8ab799faab
commit d36cba20ef
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -94,12 +94,12 @@
(native-inputs
;; FPC is built with FPC, so we need bootstrap binaries.
`(("fpc-binary"
,(match (or (%current-target-system)
(match ,(or (%current-target-system)
(%current-system))
("i686-linux" fpc-bootstrap-i386)
;("powerpc64le-linux" fpc-bootstrap-ppc64le)
;("powerpc-linux" fpc-bootstrap-ppc)
("x86_64-linux" fpc-bootstrap-x86_64)
("i686-linux" ,fpc-bootstrap-i386)
;;("powerpc64le-linux" ,fpc-bootstrap-ppc64le)
;;("powerpc-linux" ,fpc-bootstrap-ppc)
("x86_64-linux" ,fpc-bootstrap-x86_64)
(arch (error "fpc arch not yet supported in guix" arch))))))
(arguments
`(#:tests? #f ; no tests available