diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-06-07 00:22:09 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-06-07 00:30:13 +0200 |
commit | 4a007e2db9320571bd4e2fcc32e26b80f1658404 (patch) | |
tree | c41ef868110bb350e25b502c21d62678a353aca9 /gnu/packages/scribus.scm | |
parent | 116ca65b583ba4e404289f1481dc3a3ffef1c3dd (diff) | |
download | guix-4a007e2db9320571bd4e2fcc32e26b80f1658404.tar.gz guix-4a007e2db9320571bd4e2fcc32e26b80f1658404.zip |
gnu: scribus: Fix build.
* gnu/packages/scribus.scm (scribus)[arguments]: Re-introduce fix for
"ImportError: No module named _sysconfigdata_nd".
Diffstat (limited to 'gnu/packages/scribus.scm')
-rw-r--r-- | gnu/packages/scribus.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/scribus.scm b/gnu/packages/scribus.scm index 98bdf5d24e..dca1dc86e1 100644 --- a/gnu/packages/scribus.scm +++ b/gnu/packages/scribus.scm @@ -61,7 +61,19 @@ (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) |