summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerman Rimm <herman@rimm.ee>2024-01-30 16:25:16 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:58:51 +0200
commit557dab04dfec8af9ea59ee1240c594ae8852bbd6 (patch)
tree05cae83ac5d737577c58d62c1c56236861984d98
parentc627f2f74308dec3e42b5cb62e1c0fee98c54ccc (diff)
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>
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 25 insertions, 0 deletions
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")