summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-05-30 12:02:03 +0300
committerEfraim Flashner <efraim@flashner.co.il>2021-05-30 12:55:52 +0300
commitb729895ae2f9e0d5e30b35310a49fd92813b8a6e (patch)
tree88f626341d91de648f6b9fb50f0f9a49439779cb /gnu
parent5f7fb563095168280df0313c3ee5e8f941a35bc9 (diff)
gnu: Add julia-glib-jll.
* gnu/packages/julia-jll.scm (julia-glib-jll): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/julia-jll.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index 7c6316e683..203bc9cef7 100644
--- a/gnu/packages/julia-jll.scm
+++ b/gnu/packages/julia-jll.scm
@@ -32,6 +32,7 @@
#:use-module (gnu packages fribidi)
#:use-module (gnu packages gcc)
#:use-module (gnu packages gettext)
+ #:use-module (gnu packages glib)
#:use-module (gnu packages image)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages julia)
@@ -299,6 +300,50 @@ rendering library.")
(description "This package provides a wrapper for the gettext library.")
(license license:expat)))
+(define-public julia-glib-jll
+ (package
+ (name "julia-glib-jll")
+ (version "2.68.1+0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/JuliaBinaryWrappers/Glib_jll.jl")
+ (commit (string-append "Glib-v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0l0fm5m4rznljkig7k4cxpi4skm7j4nc6lqx5xr0sb0wfzbr2llv"))))
+ (build-system julia-build-system)
+ (arguments
+ '(#:tests? #f ; no runtests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'override-binary-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (map
+ (lambda (wrapper)
+ (substitute* wrapper
+ (("generate_wrapper_header.*")
+ (string-append
+ "generate_wrapper_header(\"Glib\", \""
+ (assoc-ref inputs "glib") "\")\n"))))
+ ;; There's a Julia file for each platform, override them all
+ (find-files "src/wrappers/" "\\.jl$")))))))
+ (inputs
+ `(("glib" ,glib)))
+ (propagated-inputs
+ `(("julia-jllwrappers" ,julia-jllwrappers)
+ ("julia-gettext-jll" ,julia-gettext-jll)
+ ("julia-libffi-jll" ,julia-libffi-jll)
+ ("julia-libiconv-jll" ,julia-libiconv-jll)
+ ("julia-libmount-jll" ,julia-libmount-jll)
+ ("julia-pcre-jll" ,julia-pcre-jll)
+ ("julia-zlib-jll" ,julia-zlib-jll)))
+ (home-page "https://github.com/JuliaBinaryWrappers/Glib_jll.jl")
+ (synopsis "Glib library wrappers")
+ (description "This package provides a wrapper for the glib library.")
+ (license license:expat)))
+
(define-public julia-gumbo-jll
(package
(name "julia-gumbo-jll")