[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/05: gnu: nim: Prepare for running tests.

From: guix-commits
Subject: 03/05: gnu: nim: Prepare for running tests.
Date: Wed, 3 Aug 2022 13:11:38 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 68b6eaf1d9b05c87c6d8abbe8c4d0b45d9b723ac
Author: Efraim Flashner <>
AuthorDate: Wed Aug 3 18:22:21 2022 +0300

    gnu: nim: Prepare for running tests.
    * gnu/packages/nim.scm (nim)[arguments]: Replace default 'check phase.
    [native-inputs]: Add nss-certs.
 gnu/packages/nim.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/nim.scm b/gnu/packages/nim.scm
index cf6d19c518..179a6ea0e3 100644
--- a/gnu/packages/nim.scm
+++ b/gnu/packages/nim.scm
@@ -25,7 +25,8 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix download)
   #:use-module ((guix licenses) #:prefix license:)
-  #:use-module (guix packages))
+  #:use-module (guix packages)
+  #:use-module (gnu packages certs))
 (define-public nim
@@ -70,6 +71,10 @@
                (invoke "./bin/nim" "c" "-d:release" "koch")
                (invoke "./koch" "boot" "-d:release")
                (invoke "./koch" "tools")))
+           (replace 'check
+             (lambda* (#:key tests? #:allow-other-keys)
+               (when tests?
+                 (invoke "./koch" "tests"))))
            (replace 'install
              (lambda* (#:key outputs #:allow-other-keys)
                (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
@@ -93,6 +98,7 @@
                             (string-append zsh "/_nim"))
                  (copy-file "dist/nimble/nimble.bash-completion"
                             (string-append zsh "/_nimble"))))))))
+    (native-inputs (list nss-certs))
     (home-page "";)
     (synopsis "Statically-typed, imperative programming language")
     (description "Nim (formerly known as Nimrod) is a statically-typed,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]