gnu: nim: Prepare for running tests.
* gnu/packages/nim.scm (nim)[arguments]: Replace default 'check phase. [native-inputs]: Add nss-certs.
This commit is contained in:
parent
d50f8b7ddc
commit
68b6eaf1d9
1 changed files with 7 additions and 1 deletions
|
@ -25,7 +25,8 @@
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages))
|
#:use-module (guix packages)
|
||||||
|
#:use-module (gnu packages certs))
|
||||||
|
|
||||||
(define-public nim
|
(define-public nim
|
||||||
(package
|
(package
|
||||||
|
@ -70,6 +71,10 @@
|
||||||
(invoke "./bin/nim" "c" "-d:release" "koch")
|
(invoke "./bin/nim" "c" "-d:release" "koch")
|
||||||
(invoke "./koch" "boot" "-d:release")
|
(invoke "./koch" "boot" "-d:release")
|
||||||
(invoke "./koch" "tools")))
|
(invoke "./koch" "tools")))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "./koch" "tests"))))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
|
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
|
||||||
|
@ -93,6 +98,7 @@
|
||||||
(string-append zsh "/_nim"))
|
(string-append zsh "/_nim"))
|
||||||
(copy-file "dist/nimble/nimble.bash-completion"
|
(copy-file "dist/nimble/nimble.bash-completion"
|
||||||
(string-append zsh "/_nimble"))))))))
|
(string-append zsh "/_nimble"))))))))
|
||||||
|
(native-inputs (list nss-certs))
|
||||||
(home-page "https://nim-lang.org")
|
(home-page "https://nim-lang.org")
|
||||||
(synopsis "Statically-typed, imperative programming language")
|
(synopsis "Statically-typed, imperative programming language")
|
||||||
(description "Nim (formerly known as Nimrod) is a statically-typed,
|
(description "Nim (formerly known as Nimrod) is a statically-typed,
|
||||||
|
|
Reference in a new issue