guix-commits
[Top][All Lists]
Advanced

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

34/71: gnu: Add julia-libuuid-jll.


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

efraim pushed a commit to branch master
in repository guix.

commit e2ee6686efe11a439bb5c09a5d3543e78f4579f1
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun May 30 12:08:04 2021 +0300

    gnu: Add julia-libuuid-jll.
    
    * gnu/packages/julia-jll.scm (julia-libuuid-jll): New variable.
---
 gnu/packages/julia-jll.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index 2210778..651d155 100644
--- a/gnu/packages/julia-jll.scm
+++ b/gnu/packages/julia-jll.scm
@@ -809,6 +809,44 @@ from util-linux.")
     (description "This package provides a wrapper for libtiff")
     (license license:expat)))
 
+(define-public julia-libuuid-jll
+  (package
+    (name "julia-libuuid-jll")
+    (version "2.36.0+0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/JuliaBinaryWrappers/Libuuid_jll.jl";)
+               (commit (string-append "Libuuid-v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "0iz1qrrpl8sp336m1f884sdgwbdlkp9sm371cwcfq4iriaihbmbs"))))
+    (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(\"Libuuid\", \""
+                      (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 "Libuuid library wrappers")
+    (description "This package provides a wrapper for the libuuid library from 
util-linux.")
+    (license license:expat)))
+
 (define-public julia-libvorbis-jll
   (package
     (name "julia-libvorbis-jll")



reply via email to

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