gnu: mes: Don't fail when (%current-target-system) is #f.

* gnu/packages/mes.scm (mes)[native-inputs]: Test string equality differently.
master
Marius Bakke 2017-05-17 15:49:04 +02:00
parent e7620b649c
commit 5afc737363
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ extensive examples, including parsers for the Javascript and C99 languages.")
`(("nyacc" ,nyacc)))
(native-inputs
`(("guile" ,guile-2.2)
,@(if (or (equal? (%current-system) "x86_64-linux")
(string-prefix? (%current-target-system) "x86_64-linux"))
,@(if (string-prefix? "x86_64-linux" (or (%current-target-system)
(%current-system)))
;; Use cross-compiler rather than #:system "i686-linux" to get
;; MesCC 64 bit .go files installed ready for use with Guile.
`(("i686-linux-binutils" ,(cross-binutils triplet))