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
1 changed files with 3 additions and 6 deletions

View File

@ -1172,14 +1172,11 @@ including a built-in database engine and a GUI system.")
(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