From 8f877c2c4b619c6f4d7ae670d7eb40744dda7229 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sun, 28 Aug 2022 23:11:00 +0200 Subject: gnu: Add appmenu-gtk-module. * gnu/packages/gtk.scm (appmenu-gtk-menu): New variable. Co-authored-by: Marius Bakke --- gnu/packages/gtk.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm index 56104b2124..ad34dd51ec 100644 --- a/gnu/packages/gtk.scm +++ b/gnu/packages/gtk.scm @@ -32,6 +32,7 @@ ;;; Copyright © 2022 Zhu Zihao ;;; Copyright © 2022 Benjamin Slade ;;; Copyright © 2022 Denis 'GNUtoo' Carikli +;;; Copyright © 2022 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -117,6 +118,43 @@ #:use-module (srfi srfi-26) #:use-module (ice-9 match)) +(define-public appmenu-gtk-module + (package + (name "appmenu-gtk-module") + (version "0.7.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/vala-panel-project/vala-panel-appmenu") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ywpygjwlbli65203ja2f8wwxh5gbavnfwcxwg25v061pcljaqmm")))) + (build-system meson-build-system) + (arguments + (list + #:glib-or-gtk? #t + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-install-gtk-module + (lambda* _ + (substitute* + "subprojects/appmenu-gtk-module/src/gtk-3.0/meson.build" + (("gtk3.get_pkgconfig_variable\\('libdir'\\)") + #$output))))))) + (native-inputs + (list `(,glib "bin") vala pkg-config)) + (inputs + (list gtk+ libwnck)) + (synopsis "Application Menu applet") + (description + "This package provides a global menu applet for use with desktop panels +such as mate-panel and xfce4-panel.") + (home-page "https://gitlab.com/vala-panel-project/vala-panel-appmenu") + (license (list license:lgpl3)))) + (define-public atk (package (name "atk") -- cgit v1.2.3