From 5f7fb563095168280df0313c3ee5e8f941a35bc9 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 30 May 2021 11:59:59 +0300 Subject: gnu: Add julia-libmount-jll. * gnu/packages/julia-jll.scm (julia-libmount-jll): New variable. --- gnu/packages/julia-jll.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm index 637fd267dc..7c6316e683 100644 --- a/gnu/packages/julia-jll.scm +++ b/gnu/packages/julia-jll.scm @@ -36,6 +36,7 @@ #:use-module (gnu packages imagemagick) #:use-module (gnu packages julia) #:use-module (gnu packages libffi) + #:use-module (gnu packages linux) #:use-module (gnu packages maths) #:use-module (gnu packages mp3) #:use-module (gnu packages pcre) @@ -647,6 +648,45 @@ used in autogenerated packages via @code{BinaryBuilder.jl}.") (description "This package provides a wrapper for the libiconv library.") (license license:expat))) +(define-public julia-libmount-jll + (package + (name "julia-libmount-jll") + (version "2.35.0+0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaBinaryWrappers/Libmount_jll.jl") + (commit (string-append "Libmount-v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04i4vm5rshz8nfmnxqx8rm3b9jd7b1xdiriac1bpsx3n0qf4pw89")))) + (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(\"Libmount\", \"" + (assoc-ref inputs "util-linux") "\")\n")))) + ;; There's a Julia file for each platform, override them all + (find-files "src/wrappers/" "\\.jl$"))))))) + (inputs + `(("util-linux" ,util-linux "lib"))) + (propagated-inputs + `(("julia-jllwrappers" ,julia-jllwrappers))) + (home-page "https://github.com/JuliaBinaryWrappers/Libmount_jll.jl") + (synopsis "Libmount library wrappers") + (description "This package provides a wrapper for the libmount library +from util-linux.") + (license license:expat))) + (define-public julia-libpng-jll (package (name "julia-libpng-jll") -- cgit 1.4.1