mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
gnu: qgis: Fix some plugins.
* gnu/packages/geo.scm (qgis)[arguments]: Add a 'wrap-gis' phase to set the environment variables required by some plugins.
This commit is contained in:
parent
3cea550788
commit
5ef1b17578
1 changed files with 16 additions and 0 deletions
|
@ -1933,6 +1933,22 @@ (define-public qgis
|
|||
(add-after 'wrap-python 'wrap-qt
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(wrap-qt-program (assoc-ref outputs "out") "qgis")
|
||||
#t))
|
||||
(add-after 'wrap-qt 'wrap-gis
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(saga (string-append (assoc-ref inputs "saga") "/bin"))
|
||||
(grass-version ,(package-version grass))
|
||||
(grass-majorminor (string-join
|
||||
(list-head
|
||||
(string-split grass-version #\.) 2)
|
||||
""))
|
||||
(grass (string-append (assoc-ref inputs "grass")
|
||||
"/grass" grass-majorminor)))
|
||||
(wrap-program (string-append out "/bin/qgis")
|
||||
`("PATH" ":" prefix (,saga))
|
||||
`("QGIS_PREFIX_PATH" = (,out))
|
||||
`("GISBASE" = (,grass))))
|
||||
#t)))))
|
||||
(inputs
|
||||
`(("exiv2" ,exiv2)
|
||||
|
|
Loading…
Reference in a new issue