From 7114aa4f7bac9b15e833e8fe03aebe09f3666808 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 10 Feb 2021 15:33:05 +0100 Subject: gnu: Add rust-dirs-next-2. * gnu/packages/crates-io.scm (rust-dirs-next-2): New variable. (rust-dirs-next-1): Inherit from above. --- gnu/packages/crates-io.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 04d38475fa..00ca2f96d9 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10879,9 +10879,34 @@ (define-public rust-dirs-1 ("rust-redox-users" ,rust-redox-users-0.3) ("rust-winapi" ,rust-winapi-0.3)))))) +(define-public rust-dirs-next-2 + (package + (name "rust-dirs-next") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "dirs-next" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1q9kr151h9681wwp6is18750ssghz6j9j7qm7qi1ngcwy7mzi35r")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-dirs-sys-next" ,rust-dirs-sys-next-0.1)))) + (home-page "https://github.com/xdg-rs/dirs") + (synopsis "Abstractions for standard locations for various platforms") + (description + "This package provides a tiny low-level library that provides +platform-specific standard locations of directories for config, cache and +other data.") + (license (list license:expat license:asl2.0)))) + (define-public rust-dirs-next-1 (package - (inherit rust-dirs-1) + (inherit rust-dirs-next-2) (name "rust-dirs-next") (version "1.0.2") (source -- cgit v1.2.3