Subject: [rust-team 6/9] gnu: crates-io: Add rust-detect-desktop-environment

From: Divya Ranjan <[email-masked]>
Date: Tue, 19 Nov 2024 07:32:14 +0000

* gnu/packages/crates-io.scm (rust-detect-desktop-environment-1): New variable

Change-Id: I1f9eabb6c98bdea85b57d71a504088e79d5f6264
---
 gnu/packages/crates-io.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0424cdc6a5..37bef67027 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21808,6 +21808,23 @@ (define-public rust-deser-hjson-1
     (description "This package provides an Hjson deserializer for Serde.")
     (license license:expat)))
 
+(define-public rust-detect-desktop-environment-1
+  (package
+    (name "rust-detect-desktop-environment")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "detect-desktop-environment" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1crybsn50nax07zz2sxyi88nfq05yyqicqqa6ni03j8swfxs29yg"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/demurgos/detect-desktop-environment")
+    (synopsis "Autodetect the desktop environment")
+    (description "This package provides Autodetect the desktop environment.")
+    (license license:expat)))
+
 (define-public rust-detone-1
   (package
     (name "rust-detone")
-- 
2.46.0