diff options
author | Hilton Chain <hako@ultrarare.space> | 2024-11-20 08:36:02 +0800 |
---|---|---|
committer | Hilton Chain <hako@ultrarare.space> | 2024-12-31 18:50:45 +0800 |
commit | b218d5cc11bbe67c1253b52d24de469da4597681 (patch) | |
tree | c94ebf2462e34f452c68334baf28f313db099ad2 /gnu/packages/zig-xyz.scm | |
parent | a1c903df5368792194b8b20b26a41bb186b174e3 (diff) |
gnu: Add zig-wlroots.
* gnu/packages/zig-xyz.scm (zig-wlroots): New variable.
Change-Id: I470b7e988c77e41e423efbdb6aff29ef86c75d0e
Diffstat (limited to 'gnu/packages/zig-xyz.scm')
-rw-r--r-- | gnu/packages/zig-xyz.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm index 2cb877790b..29b12dea82 100644 --- a/gnu/packages/zig-xyz.scm +++ b/gnu/packages/zig-xyz.scm @@ -159,6 +159,47 @@ interface.") (home-page "https://codeberg.org/ifreund/zig-wayland") (license license:expat))) +(define-public zig-wlroots + (package + (name "zig-wlroots") + (version "0.18.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/ifreund/zig-wlroots") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1rckbrdqc4b5q6r8ppijkkf0xi01536sfsnfgmy9f3mfj3hvifvy")))) + (build-system zig-build-system) + (arguments + (list #:zig-release-type "safe" + #:zig-build-flags + #~(list "-Denable-tests") + #:zig-test-flags + #~(list "-Denable-tests") + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-tinywl + (lambda args + (chdir "tinywl") + (apply (assoc-ref %standard-phases 'build) + `(,@args #:zig-build-flags ())) + (apply (assoc-ref %standard-phases 'install) + `(,@args #:install-source? #f)) + (chdir "..")))))) + (propagated-inputs + (list wlroots + zig-pixman + zig-wayland + zig-xkbcommon)) + (native-inputs (list pkg-config)) + (synopsis "Zig bindings for wlroots") + (description "This package provides Zig bindings for @code{wlroots}.") + (home-page "https://codeberg.org/ifreund/zig-wlroots") + (license license:expat))) + (define-public zig-xkbcommon (package (name "zig-xkbcommon") |