From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 60658@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#60658] [PATCH 1/3] gnu: guile-aa-tree: Restrict install to aa-tree.scm.
Date: Sun, 8 Jan 2023 17:03:15 +0100 [thread overview]
Message-ID: <20230108160317.14909-1-ngraves@ngraves.fr> (raw)
In-Reply-To: <87h6x1dsif.fsf@ngraves.fr>
* gnu/packages/guile-xyz.scm (guile-aa-tree):
[native-inputs]: Remove guile-2.2.
[inputs]: Add guile-2.2.
[arguments]: (scheme-file-regexp): Restrict install to aa-tree.scm
[arguments]: (phases): Add check phase.
---
gnu/packages/guile-xyz.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 2dd5a520d1..68150c89d0 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1261,7 +1261,23 @@ (define-public guile-aa-tree
(base32
"0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
(build-system guile-build-system)
- (native-inputs (list guile-2.2))
+ (inputs (list guile-2.2))
+ (arguments
+ (list
+ #:scheme-file-regexp "^aa-tree\\.scm"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'install-documentation 'check
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((guile #$(this-package-input "guile"))
+ (effective (target-guile-effective-version guile))
+ (go-dir (string-append #$output "/lib/guile/"
+ effective "/site-ccache/")))
+ (invoke (search-input-file inputs "/bin/guile")
+ "--no-auto-compile"
+ "-C" go-dir
+ "-c" (string-append
+ "(load \"" (getcwd) "/test-aa-tree.scm\")"))))))))
;; https://savannah.nongnu.org/projects/guile-aa-tree
(home-page "https://qlfiles.net/guile-aa-tree/")
(synopsis "AA tree data structure for Guile")
--
2.38.1
next prev parent reply other threads:[~2023-01-08 16:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-08 14:12 [bug#60658] update guile version for guile-aa-tree and fix install Nicolas Graves via Guix-patches via
2023-01-08 16:03 ` Nicolas Graves via Guix-patches via [this message]
2023-01-08 16:03 ` [bug#60658] [PATCH 2/3] gnu: guile-aa-tree: Format origin Nicolas Graves via Guix-patches via
2023-01-08 16:03 ` [bug#60658] [PATCH 3/3] gnu: guile-aa-tree: Update Guile version to 3.0 Nicolas Graves via Guix-patches via
2023-01-12 22:21 ` bug#60658: update guile version for guile-aa-tree and fix install Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230108160317.14909-1-ngraves@ngraves.fr \
--to=guix-patches@gnu.org \
--cc=60658@debbugs.gnu.org \
--cc=ngraves@ngraves.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.