guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

31/71: gnu: Add julia-libmount-jll.


From: guix-commits
Subject: 31/71: gnu: Add julia-libmount-jll.
Date: Sun, 30 May 2021 05:57:38 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 5f7fb563095168280df0313c3ee5e8f941a35bc9
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun May 30 11:59:59 2021 +0300

    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 637fd26..7c6316e 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]