From 1b678f4556d7bc848c7a0e970c915a301acdd796 Mon Sep 17 00:00:00 2001 From: Lilah Tascheter Date: Mon, 3 Nov 2025 17:14:28 -0600 Subject: [PATCH] gnu: hare-xyz: Add hare-gtk4-layer-shell. * gnu/packages/hare-xyz.scm (hare-gtk4-layer-shell): New variable. Change-Id: Ifa369e88ef3e9940fe11d9c922cbef01a9cdfb37 Signed-off-by: jgart --- gnu/packages/hare-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/hare-xyz.scm b/gnu/packages/hare-xyz.scm index 5a96b0209208ec52034787063cc2f655c47d855b..ec9580ed78542c0fdbec7d46606652cf8b10190c 100644 --- a/gnu/packages/hare-xyz.scm +++ b/gnu/packages/hare-xyz.scm @@ -128,3 +128,35 @@ including GTK3, GTK4, and GLib.") (description "This package is a set of libadwaita bindings for the Hare language.") (license license:mpl2.0))) + +(define-public hare-gtk4-layer-shell + (package + (name "hare-gtk4-layer-shell") + (version "0.1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~sircmpwn/hare-gtk4-layer-shell") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1y52vjz1j4v615wi6n1yjapw9r3plwh67lcg45sa778rv5316vfz")))) + (build-system hare-build-system) + (arguments + (list #:tests? #f ; no tests + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'patch-scripts + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "scripts/generate" + (("/usr/(share/gir-1.0/[^ ]*\\.gir)" _ name) + (search-input-file inputs name)))))))) + (propagated-inputs (list gtk4-layer-shell)) + (native-inputs `((,hare-gi "bin"))) + (supported-systems %hare-supported-systems) + (home-page "https://git.sr.ht/~sircmpwn/hare-gtk4-layer-shell") + (synopsis "GTK layer-shell bindings for Hare") + (description "This package is a set of gtk-layer-shell bindings for the Hare +language.") + (license license:mpl2.0)))