Subject: [bug#73311] [PATCH v2 1/1] gnu: Add libliftoff.

From: Steve George <[email-masked]>
Date: Sun, 22 Sep 2024 15:07:07 +0100

From: The Man <[email-masked]>

* gnu/packages/freedesktop.scm (libliftoff): New variable.

Reviewed-by: Steve George <[email-masked]>

Change-Id: I19eda24aea4327bcd72a7e15ec0784ef1e302783
---
 gnu/packages/freedesktop.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 993bb84ec6..2a78895a20 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -354,6 +354,30 @@ (define-public libglib-testing
     (home-page "https://gitlab.gnome.org/pwithnall/libglib-testing")
     (license license:lgpl2.1+)))
 
+(define-public libliftoff
+  (package
+    (name "libliftoff")
+    (version "0.5.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.freedesktop.org/emersion/libliftoff")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "163g8ndsbma7acy2k9mrnvlpb7yi4431hgkx1gygkafgwpq1ii1x"))))
+    (build-system meson-build-system)
+    (native-inputs (list pkg-config))
+    (inputs (list libdrm))
+    (home-page "https://gitlab.freedesktop.org/emersion/libliftoff")
+    (synopsis "Lightweight KMS plane library for compositors")
+    (description "Libliftoff eases the use of
+@acronym{KMS, Kernel Mode Setting} planes from userspace.  Users create
+\"virtual planes\" called layers, set KMS properties on them, and libliftoff
+will pick hardware planes for these layers if possible.")
+    (license license:expat)))
+
 (define-public malcontent
   (package
     (name "malcontent")
-- 
2.46.0