guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

31/44: gnu: Add rust-xdg-home-1.


From: guix-commits
Subject: 31/44: gnu: Add rust-xdg-home-1.
Date: Mon, 12 Feb 2024 07:40:43 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 450c3628eb85f2cf19dfbfa00dd72d508be0764e
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Tue Jan 30 16:25:16 2024 +0100

    gnu: Add rust-xdg-home-1.
    
    * gnu/packages/crates-io.scm (rust-xdg-home-1): Add variable.
    
    Change-Id: I3c10b1303c37c93c6302bd0537120db786f4463c
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0e87545d07..e9ae86c410 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -77310,6 +77310,31 @@ to XDG Base Directory specification.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-xdg-home-1
+  (package
+    (name "rust-xdg-home")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "xdg-home" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1kbd1ks8bvpsay6lgk60yaf1w13daaf75ghmslan031ss4y20s97"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-nix" ,rust-nix-0.26)
+                       ("rust-winapi" ,rust-winapi-0.3))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'pre-check
+           (lambda _
+             (setenv "HOME" (getcwd)))))))
+    (home-page "https://github.com/zeenix/xdg-home";)
+    (synopsis "User home directory per XDG Specification")
+    (description "The user's home directory as per the XDG Specification.")
+    (license license:expat)))
+
 (define-public rust-xflags-macros-0.2
   (package
     (name "rust-xflags-macros")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]