guix-commits
[Top][All Lists]
Advanced

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

64/81: gnu: Add zig-wayland.


From: guix-commits
Subject: 64/81: gnu: Add zig-wayland.
Date: Sat, 21 Dec 2024 12:53:36 -0500 (EST)

hako pushed a commit to branch wip-zig-bootstrap
in repository guix.

commit 9e3b4bf87ef499b898027e465fd20ba95e40c59a
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Wed Nov 20 08:35:47 2024 +0800

    gnu: Add zig-wayland.
    
    * gnu/packages/zig-xyz.scm (zig-wayland): New variable.
    
    Change-Id: Ibb060d6b684e139e42297050223aa3f9110ae118
---
 gnu/packages/zig-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index af4c3d2f4c..09587aec46 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -129,6 +129,36 @@ mission-critical safety and performance for financial 
services.")
     (home-page "https://codeberg.org/ifreund/zig-pixman";)
     (license license:expat)))
 
+(define-public zig-wayland
+  (package
+    (name "zig-wayland")
+    (version "0.2.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://codeberg.org/ifreund/zig-wayland";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1cf5085f6c0yly4fcr49jry3mh12bybw98x5lvickl6w5gxsvy3n"))))
+    (build-system zig-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'configure 'fix-cross-compilation
+                 (lambda _
+                   (substitute* "build.zig"
+                     (("pkg-config") (getenv "PKG_CONFIG"))))))))
+    (propagated-inputs (list wayland wayland-protocols))
+    (native-inputs (list pkg-config wayland))
+    (synopsis "Zig Wayland bindings and protocol scanner")
+    (description
+     "This package provides Zig bindings for @code{wayland} and a 
@code{Scanner}
+interface.")
+    (home-page "https://codeberg.org/ifreund/zig-wayland";)
+    (license license:expat)))
+
 (define-public zig-zls
   (package
     (name "zig-zls")



reply via email to

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