gnu: Add waylock.

* gnu/packages/zig-xyz.scm (waylock): New variable.

Modified-by: Hilton Chain <hako@ultrarare.space>
Signed-off-by: Hilton Chain <hako@ultrarare.space>
Change-Id: I8a9e83ead3b2cb13471d8e92eb6e3463a646dad8
This commit is contained in:
Ashvith Shetty 2024-12-02 13:40:20 +05:30 committed by Hilton Chain
parent 85925fcc75
commit 8e80700b06
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -29,6 +29,7 @@ (define-module (gnu packages zig-xyz)
#:use-module (gnu packages)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages man)
#:use-module (gnu packages linux)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages wm)
@ -109,6 +110,37 @@ (define-public tigerbeetle
(home-page "https://github.com/tigerbeetledb/tigerbeetle")
(license license:asl2.0)))
(define-public waylock
(package
(name "waylock")
(version "1.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://codeberg.org/ifreund/waylock")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0jlq23cb5069sa5ipshhj82a9rn30frflwi9skp2kplqpxm15wwd"))))
(build-system zig-build-system)
(arguments
(list
#:install-source? #f
;; No tests.
#:tests? #f
#:zig-release-type "safe"
#:zig-build-flags
#~(list "-Dpie")))
(inputs (list linux-pam zig-wayland zig-xkbcommon))
(native-inputs (list pkg-config scdoc))
(home-page "https://codeberg.org/ifreund/waylock")
(synopsis "Wayland screen locker")
(description
"Waylock is a small screen locker for Wayland compositors implementing the
@code{ext-session-lock-v1} protocol.")
(license license:expat)))
(define-public zig-pixman
(package
(name "zig-pixman")