gnu: Add julia-libmount-jll.

* gnu/packages/julia-jll.scm (julia-libmount-jll): New variable.
This commit is contained in:
Efraim Flashner 2021-05-30 11:59:59 +03:00
parent 088e1a5090
commit 5f7fb56309
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -36,6 +36,7 @@ (define-module (gnu packages julia-jll)
#: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 @@ (define-public julia-libiconv-jll
(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")