guix-commits
[Top][All Lists]
Advanced

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

52/71: gnu: Add julia-libglvnd-jll.


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

efraim pushed a commit to branch master
in repository guix.

commit 7946cd309bee1322986523290d30b40189be085b
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun May 30 12:33:59 2021 +0300

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

diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index 32602f3..4cfe09d 100644
--- a/gnu/packages/julia-jll.scm
+++ b/gnu/packages/julia-jll.scm
@@ -32,6 +32,7 @@
   #:use-module (gnu packages fribidi)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages gettext)
+  #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages gtk)
@@ -825,6 +826,44 @@ used in autogenerated packages via 
@code{BinaryBuilder.jl}.")
     (description "This package provides a wrapper for the libgcrypt library.")
     (license license:expat)))
 
+(define-public julia-libglvnd-jll
+  (package
+    (name "julia-libglvnd-jll")
+    (version "1.3.0+2")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/JuliaBinaryWrappers/Libglvnd_jll.jl";)
+               (commit (string-append "Libglvnd-v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "1lrppqj836saryqxj9xrqn0cih513qhijkhgqdww5azw8w917d3w"))))
+    (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\"Libglvnd\"")
+                    (string-append "\"" (assoc-ref inputs "libglvnd") "\""))))
+               ;; There's a Julia file for each platform, override them all
+               (find-files "src/wrappers/" "\\.jl$")))))))
+    (inputs
+     `(("libglvnd" ,libglvnd)))
+    (propagated-inputs
+     `(("julia-jllwrappers" ,julia-jllwrappers)
+       ("julia-xorg-libx11-jll" ,julia-xorg-libx11-jll)
+       ("julia-xorg-libxext-jll" ,julia-xorg-libxext-jll)))
+    (home-page "https://github.com/JuliaBinaryWrappers/Libglvnd_jll.jl";)
+    (synopsis "Libglvnd library wrappers")
+    (description "This package provides a wrapper for the libglvnd library.")
+    (license license:expat)))
+
 (define-public julia-libgpg-error-jll
   (package
     (name "julia-libgpg-error-jll")



reply via email to

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