guix-commits
[Top][All Lists]
Advanced

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

36/71: gnu: Add julia-xorg-libxau-jll.


From: guix-commits
Subject: 36/71: gnu: Add julia-xorg-libxau-jll.
Date: Sun, 30 May 2021 05:57:40 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 154f0a9b1439f2a18f6daf0b27a993da38c088e1
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun May 30 12:10:26 2021 +0300

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

diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index c10d371..e528c42 100644
--- a/gnu/packages/julia-jll.scm
+++ b/gnu/packages/julia-jll.scm
@@ -46,7 +46,8 @@
   #:use-module (gnu packages web)
   #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xiph)
-  #:use-module (gnu packages xml))
+  #:use-module (gnu packages xml)
+  #:use-module (gnu packages xorg))
 
 ;;; TODO: Remove this autogenerated source package
 ;;; and build it from realse source using 
<https://github.com/JuliaPackaging/Yggdrasil/>
@@ -1308,6 +1309,42 @@ build tree Yggdrasil.")
     (description "This package provides a wrapper for the libxml2 library.")
     (license license:expat)))
 
+(define-public julia-xorg-libxau-jll
+  (package
+    (name "julia-xorg-libxau-jll")
+    (version "1.0.9+3")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url 
"https://github.com/JuliaBinaryWrappers/Xorg_libXau_jll.jl";)
+               (commit (string-append "Xorg_libXau-v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "1bc59hzg4jgdy0lwykp6avxsb87fq9j79c30yxprwjvxq8xm3p8z"))))
+    (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
+                   (("artifact\"Xorg_libXau\"")
+                    (string-append "\"" (assoc-ref inputs "libxau") "\""))))
+               ;; There's a Julia file for each platform, override them all
+               (find-files "src/wrappers/" "\\.jl$")))))))
+    (inputs
+     `(("libxau" ,libxau)))
+    (propagated-inputs
+     `(("julia-jllwrappers" ,julia-jllwrappers)))
+    (home-page "https://github.com/JuliaBinaryWrappers/Xorg_libXau_jll.jl";)
+    (synopsis "Libxau library wrappers")
+    (description "This package provides a wrapper for the libxau library.")
+    (license license:expat)))
+
 (define-public julia-zlib-jll
   (package
     (name "julia-zlib-jll")



reply via email to

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