gnu: guix-jupyter: Fix compilation with Guile-JSON >= 4.3.x.

Reported by wehlutyk on #guix.

* gnu/packages/package-management.scm (guix-jupyter)[source]: Avoid
'define-json-mapping' name clash with Guile-JSON.
This commit is contained in:
Ludovic Courtès 2020-09-04 15:57:50 +02:00
parent d6983b1331
commit e9db10ae7f
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1000,6 +1000,15 @@ (define-public guix-jupyter
(substitute* "configure.ac"
(("^GUILE_PKG.*")
"GUILE_PKG([3.0 2.2])\n"))
;; Avoid name clash and build failure now that
;; 'define-json-mapping' is also provided by Guile-JSON, as
;; of version 4.3.
(substitute* (find-files "." "\\.scm$")
(("define-json-mapping")
"define-json-mapping*")
(("<=>")
"<->"))
#t))
(file-name (string-append "guix-jupyter-" version "-checkout"))))
(build-system gnu-build-system)