about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPjotr Prins2026-04-01 09:47:09 +0200
committerPjotr Prins2026-04-01 09:47:09 +0200
commit507689196015e0dc3fa5b673e22903784cf9d957 (patch)
tree398ca2c64565449a434e888ca45d78e11a5d5f41
parentea22589d27e8ca9dac3f7ee9662853deeb7e26ec (diff)
downloadgenecup-507689196015e0dc3fa5b673e22903784cf9d957.tar.gz
Path fixes (edirect) and renamed package to edirect-25
-rw-r--r--guix.scm14
1 files changed, 10 insertions, 4 deletions
diff --git a/guix.scm b/guix.scm
index 3d4856b..2a1b1c1 100644
--- a/guix.scm
+++ b/guix.scm
@@ -119,16 +119,16 @@ detection tokenizer (tab format), used by NLTK's sent_tokenize function.")
                   (system "cat pmid.list | fetch-pubmed -path PubMed/Archive/ > test.xml"))
                 (mkdir-p out)
                 (copy-recursively "minipubmed" out)))))))
-    (inputs (list edirect))
+    (inputs (list edirect-25))
     (home-page "https://genecup.org")
     (synopsis "Mini PubMed archive for GeneCup testing")
     (description "A small collection of 2473 PubMed abstracts for testing
 GeneCup with four gene symbols (gria1, crhr1, drd2, and penk).")
     (license license:expat)))
 
-(define-public edirect
+(define-public edirect-25
   (package
-    (name "edirect")
+    (name "edirect-25")
     (version "25.2.20260328")
     (source (origin
               (method url-fetch)
@@ -149,6 +149,12 @@ GeneCup with four gene symbols (gria1, crhr1, drd2, and penk).")
       #:phases
       #~(modify-phases %standard-phases
           (delete 'configure)
+          (add-after 'unpack 'patch-path-reset
+            (lambda _
+              ;; These scripts reset PATH=/bin:/usr/bin which breaks Guix
+              (substitute* '("xtract" "rchive" "transmute")
+                (("PATH=/bin:/usr/bin")
+                 "PATH=\"/bin:/usr/bin:$PATH\""))))
           (add-after 'unpack 'patch-go-version
             (lambda _
               ;; Relax Go version requirement to match available toolchain
@@ -421,7 +427,7 @@ access to Gemini models.")
        openssl
        ))
     (inputs
-     `(("edirect" ,edirect)
+     `(("edirect-25" ,edirect-25)
        ("inetutils" ,inetutils)
        ("gzip" ,gzip)
        ("minipubmed" ,minipubmed)