gnu: janet: Prepare for cross-compilation.

* gnu/packages/lisp.scm (janet)[arguments]: Use 'cc-for-target'. Replace
  custom 'check' phase by 'test-target' parameter.
This commit is contained in:
Guillaume Le Vaillant 2021-10-15 11:12:52 +02:00
parent e9bd9a2d58
commit 90e92befbc
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -1172,14 +1172,11 @@ (define-public janet
(list
(string-append "DESTDIR=" (assoc-ref %outputs "out"))
(string-append "PREFIX=")
(string-append "CC=" (assoc-ref %build-inputs "gcc")
"/bin/gcc"))
(string-append "CC=" ,(cc-for-target)))
#:test-target "test"
#:phases
(modify-phases %standard-phases
(delete 'configure)
(replace 'check
(lambda _
(invoke "make" "test"))))))
(delete 'configure))))
(home-page "https://janet-lang.org/")
(synopsis "Functional, imperative and embeddable programming language")
(description