about summary refs log tree commit diff
diff options
context:
space:
mode:
authorpjotrp <pjotr.public01@thebird.nl>2026-10-11 19:49:37 +0000
committerpjotrp <pjotr.public01@thebird.nl>2026-10-11 19:49:37 +0000
commitd8028d5632c43378008ae6201fddfb3d3d8ca7ee (patch)
tree91adeab721477468da72e6ef331254209b891d6e
parenta33d551ae3381fa232ec15f2d95ee65b4501f27b (diff)
downloadguix-bioinformatics-d8028d5632c43378008ae6201fddfb3d3d8ca7ee.tar.gz
gemma: do not let (guix build utils) shadow the which package
(gn packages gemma) imported both (gnu packages base) (the `which`
package, needed in gemma-gn2's native-inputs) and (guix build utils)
(a `which` procedure for locating executables). The later import won,
so gemma-gn2's `("which" ,which)` native-input silently became a
procedure, not a package, and guix rejected it outright:

  guix shell: error: gn/packages/gemma.scm:45:2: package
  `gemma-gn2@0.98.5-8cd4cdb' has an invalid input:
  ("which" #<procedure which (program)>)

Hide `which` from the (guix build utils) import so the package
resolves to the intended one. Verified: gemma-wrapper now builds and
runs under `guix shell -L . -D -f <consumer>/guix.scm`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
-rw-r--r--gn/packages/gemma.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gn/packages/gemma.scm b/gn/packages/gemma.scm
index 664404c..5e99b06 100644
--- a/gn/packages/gemma.scm
+++ b/gn/packages/gemma.scm
@@ -33,7 +33,13 @@
   #:use-module (gnu packages ruby-xyz)
   #:use-module (gn packages ruby)
   #:use-module (gn packages shell)
-  #:use-module (guix build utils)
+  ;; #:hide (which): (gnu packages base) above exports the `which`
+  ;; package, needed in gemma-gn2's native-inputs; this module's own
+  ;; `which` export is an unrelated build-side procedure for locating
+  ;; executables. Importing it unqualified shadows the package, so
+  ;; gemma-gn2's `("which" ,which)` input silently becomes a procedure,
+  ;; not a package, which guix then rejects as an invalid input.
+  #:use-module ((guix build utils) #:hide (which))
   #:use-module (srfi srfi-1))