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:
Tobias Geerinckx-Rice 2020-10-16 21:07:06 +02:00
parent bcf9732059
commit 6c03d15d7d
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -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