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 @@ track your position right from your laptop.")
|
||||||
(symlink (string-append dir "/lib")
|
(symlink (string-append dir "/lib")
|
||||||
(string-append out "/lib")))
|
(string-append out "/lib")))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'install-links 'wrap-python
|
(add-after 'install-links 'python:wrap
|
||||||
(assoc-ref python:%standard-phases '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")
|
(synopsis "GRASS Geographic Information System")
|
||||||
(description
|
(description
|
||||||
"GRASS (Geographic Resources Analysis Support System), is a Geographic
|
"GRASS (Geographic Resources Analysis Support System), is a Geographic
|
||||||
|
|
Reference in a new issue