mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: grass: Fix start-up without python@3 in profile.
* gnu/packages/geo.scm (grass)[arguments]: Rename ‘wrap-python’ phase to ‘python:wrap’. Add ‘wrap-with-python-interpreter’ phase.
This commit is contained in:
parent
bcf9732059
commit
6c03d15d7d
1 changed files with 8 additions and 2 deletions
|
@ -1865,8 +1865,14 @@ (define-public grass
|
|||
(symlink (string-append dir "/lib")
|
||||
(string-append out "/lib")))
|
||||
#t))
|
||||
(add-after 'install-links 'wrap-python
|
||||
(assoc-ref python:%standard-phases 'wrap)))))
|
||||
(add-after 'install-links 'python:wrap
|
||||
(assoc-ref python:%standard-phases 'wrap))
|
||||
(add-after 'python:wrap 'wrap-with-python-interpreter
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(wrap-program (string-append out "/bin/" ,grassxx)
|
||||
`("GRASS_PYTHON" = (,(which "python3"))))
|
||||
#t))))))
|
||||
(synopsis "GRASS Geographic Information System")
|
||||
(description
|
||||
"GRASS (Geographic Resources Analysis Support System), is a Geographic
|
||||
|
|
Loading…
Reference in a new issue