diff options
| author | Pjotr Prins | 2026-03-27 13:15:58 +0100 |
|---|---|---|
| committer | Pjotr Prins | 2026-03-27 13:15:58 +0100 |
| commit | f6e63d3d53a3f4c03c646ccadf718920a0a1095e (patch) | |
| tree | 2f7fc652c2238e0fbe17f2117e9df18c69a441b1 /guix.scm | |
| parent | 643bb3f622da68b109f3a99524713c8c1e66239b (diff) | |
| download | genecup-f6e63d3d53a3f4c03c646ccadf718920a0a1095e.tar.gz | |
Make sure paths are available
Diffstat (limited to 'guix.scm')
| -rw-r--r-- | guix.scm | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/guix.scm b/guix.scm index fc6ebbc..f5e2d83 100644 --- a/guix.scm +++ b/guix.scm @@ -192,15 +192,10 @@ access to Gemini models.") (lambda* (#:key inputs #:allow-other-keys) (delete-file "minipubmed.tgz") (let ((pubmed (string-append (assoc-ref inputs "minipubmed") - "/share/minipubmed")) - (punkt (string-append (assoc-ref inputs "nltk-punkt") - "/share/nltk_data/tokenizers/punkt"))) + "/share/minipubmed"))) ;; Patch default pubmed path to store location (substitute* "more_functions.py" - (("\\./minipubmed") pubmed)) - ;; Copy punkt tokenizer data - (mkdir-p "nlp/tokenizers") - (copy-recursively punkt "nlp/tokenizers/punkt")))) + (("\\./minipubmed") pubmed))))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) @@ -248,7 +243,10 @@ access to Gemini models.") ,(dirname (which "dirname")) ,(dirname (which "grep")) ,(dirname (which "sed")))) - `("GUIX_PYTHONPATH" ":" prefix (,path))))))))) + `("GUIX_PYTHONPATH" ":" prefix (,path)) + `("NLTK_DATA" ":" prefix + (,(string-append (assoc-ref inputs "nltk-punkt") + "/share/nltk_data")))))))))) (propagated-inputs (list python-bcrypt |
