From b729895ae2f9e0d5e30b35310a49fd92813b8a6e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 30 May 2021 12:02:03 +0300 Subject: gnu: Add julia-glib-jll. * gnu/packages/julia-jll.scm (julia-glib-jll): New variable. --- gnu/packages/julia-jll.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'gnu/packages/julia-jll.scm') 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 @@ (define-module (gnu packages julia-jll) #: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 @@ (define-public julia-gettext-jll (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") -- cgit v1.2.3