Skip to content
Snippets Groups Projects
Unverified Commit 4a007e2d authored by Nicolas Goaziou's avatar Nicolas Goaziou
Browse files

gnu: scribus: Fix build.

* gnu/packages/scribus.scm (scribus)[arguments]: Re-introduce fix for
  "ImportError: No module named _sysconfigdata_nd".
parent 116ca65b
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,19 @@ (define-public scribus
(arguments
`(#:tests? #f ;no test target
#:configure-flags
'("-DWANT_GRAPHICSMAGICK=1")))
'("-DWANT_GRAPHICSMAGICK=1")
#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Fix "ImportError: No module named _sysconfigdata_nd" where
;; Scribus checks PATH and eventually runs system's Python
;; instead of package's.
(let* ((out (assoc-ref outputs "out"))
(py2 (assoc-ref inputs "python")))
(wrap-program (string-append out "/bin/scribus")
`("PATH" ":" prefix (,(string-append py2 "/bin")))))
#t)))))
(inputs
`(("boost" ,boost)
("cairo" ,cairo)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment