~ruther/guix-local

1b678f4556d7bc848c7a0e970c915a301acdd796 — Lilah Tascheter 3 months ago 0ad13c7
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 <jgart@dismail.de>
1 files changed, 32 insertions(+), 0 deletions(-)

M gnu/packages/hare-xyz.scm
M gnu/packages/hare-xyz.scm => gnu/packages/hare-xyz.scm +32 -0
@@ 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)))