summary refs log tree commit diff
path: root/gnu/packages/crates-graphics.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-04 11:21:13 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:13 +0200
commit7e44968fe3155e8aef2db06b816f07f376378b3a (patch)
tree0f6162cdd76694fc29371248900ffb480d080167 /gnu/packages/crates-graphics.scm
parent83e2740aa103775a01918abf2058e69ac1fc675a (diff)
downloadguix-7e44968fe3155e8aef2db06b816f07f376378b3a.tar.gz
gnu: Add rust-wayland-protocols-wlr-0.2.
* gnu/packages/crates-graphics.scm (rust-wayland-protocols-wlr-0.2): New
variable.
(rust-wayland-protocols-wlr-0.1): Inherit from
rust-wayland-protocols-wlr-0.2.

Change-Id: I8165953eccb5bc0c3e6f6dfad09cdfc6d3d43d0b
Diffstat (limited to 'gnu/packages/crates-graphics.scm')
-rw-r--r--gnu/packages/crates-graphics.scm34
1 files changed, 27 insertions, 7 deletions
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index dc2a9abbeb..08037cd22c 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -3996,8 +3996,34 @@ extensions.")
         ("rust-wayland-sys" ,rust-wayland-sys-0.21)
         ("rust-wayland-scanner" ,rust-wayland-scanner-0.21))))))
 
+(define-public rust-wayland-protocols-wlr-0.2
+  (package
+    (name "rust-wayland-protocols-wlr")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wayland-protocols-wlr" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1mjww9psk2nc5hm2q4s3qas30rbzfg1sb6qgw518fbbcdfvn27xd"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-wayland-backend" ,rust-wayland-backend-0.3)
+                       ("rust-wayland-client" ,rust-wayland-client-0.31)
+                       ("rust-wayland-protocols" ,rust-wayland-protocols-0.31)
+                       ("rust-wayland-scanner" ,rust-wayland-scanner-0.31)
+                       ("rust-wayland-server" ,rust-wayland-server-0.31))))
+    (home-page "https://github.com/smithay/wayland-rs")
+    (synopsis "Generated API for the WLR wayland protocol extensions")
+    (description "This package provides generated API for the WLR wayland
+protocol extensions.")
+    (license license:expat)))
+
 (define-public rust-wayland-protocols-wlr-0.1
   (package
+    (inherit rust-wayland-protocols-wlr-0.2)
     (name "rust-wayland-protocols-wlr")
     (version "0.1.0")
     (source
@@ -4008,7 +4034,6 @@ extensions.")
        (sha256
         (base32
          "12jqi7n77l8a13hc5w5fkdgs4kdjk9i6nvl74njsdr106c4r3sgw"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-bitflags" ,rust-bitflags-1)
@@ -4016,12 +4041,7 @@ extensions.")
         ("rust-wayland-client" ,rust-wayland-client-0.30)
         ("rust-wayland-protocols" ,rust-wayland-protocols-0.30)
         ("rust-wayland-scanner" ,rust-wayland-scanner-0.30)
-        ("rust-wayland-server" ,rust-wayland-server-0.30))))
-    (home-page "https://github.com/smithay/wayland-rs")
-    (synopsis "Generated API for the WLR wayland protocol extensions")
-    (description "This package provides generated API for the WLR wayland
-protocol extensions")
-    (license license:expat)))
+        ("rust-wayland-server" ,rust-wayland-server-0.30))))))
 
 (define-public rust-wayland-scanner-0.31
   (package