Subject: [PATCH v3 03/12] gnu: Add libpanel.

From: Vivien Kraus <[email-masked]>
Date: Sat, 4 Mar 2023 18:52:52 +0100

* gnu/packages/gtk.scm (libpanel): New variable.
---
 gnu/packages/gtk.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 5101976fb9..ab21ed0bf9 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -3039,3 +3039,37 @@ (define-public webp-pixbuf-loader
     (synopsis "WebP GdkPixbuf loader library")
     (description "Webp-pixbuf-loader is a WebP format loader of GdkPixbuf.")
     (license license:lgpl2.0+)))
+
+(define-public libpanel
+  (package
+    (name "libpanel")
+    (version "1.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://gnome/sources/libpanel/"
+                           (version-major+minor version)
+                           "/libpanel-" version ".tar.xz"))
+       (sha256
+        (base32 "1faa8wi3v12rmsb12njkp8f8034p737l0w4aqxky1j72ad15av8z"))))
+    (build-system meson-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'disable-gtk-update-icon-cache
+            (lambda _
+              (substitute* "meson.build"
+                (("gtk_update_icon_cache: true")
+                 "gtk_update_icon_cache: false"))))
+          (add-after 'unpack 'set-fontconfig-home
+            (lambda _
+              (setenv "HOME" (getcwd)))))))
+    (inputs (list gtk glib-next libadwaita))
+    (native-inputs
+     (list pkg-config gobject-introspection (list glib "bin") vala gi-docgen))
+    (synopsis "Dock and panel widgets for GTK")
+    (description "Libpanel provides widgets for panels, docks, columns and
+grids of pages, as needed to implement IDEs.")
+    (home-page "https://gitlab.gnome.org/GNOME/libpanel")
+    (license license:lgpl3+)))
-- 
2.39.1