diff mbox series

[bug#42412] gnu: Add rust-directories.

Message ID 20200718100944.18969-1-brown121407@posteo.ro
State Accepted
Headers show
Series [bug#42412] gnu: Add rust-directories. | expand

Checks

Context Check Description
cbaines/applying patch fail View Laminar job

Commit Message

Alexandru-Sergiu Marton July 18, 2020, 10:09 a.m. UTC
* gnu/packages/crates-io.scm (rust-directories-3): New variable.
---
 gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Comments

Efraim Flashner July 20, 2020, 9:47 a.m. UTC | #1
Apparently there was a redirect on the home-page so I updated that.
Patch pushed!
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8a1e462f85..e6f2663f67 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5610,6 +5610,38 @@  structs and enums.")
        (("rust-blobby" ,rust-blobby-0.1)
         ("rust-generic-array" ,rust-generic-array-0.13))))))
 
+(define-public rust-directories-3
+  (package
+    (name "rust-directories")
+    (version "3.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "directories" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "03ysv4m6mhsc3w1xnvncd5sxf7v2dz917awq6ksx0n0bsqwxdzpq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-dirs-sys" ,rust-dirs-sys-0.3))
+       #:cargo-development-inputs
+       (("rust-bencher" ,rust-bencher-0.1))))
+    (home-page
+     "https://github.com/soc/directories-rs")
+    (synopsis
+     "Library for standard locations of data directories")
+    (description
+     "This package provides a tiny mid-level library that provides
+platform-specific standard locations of directories for config,
+cache and other data on Linux, Windows and macOS by leveraging the
+mechanisms defined by the XDG base/user directory specifications
+on Linux, the Known Folder API on Windows, and the Standard
+Directory guidelines on macOS.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-dirs-2.0
   (package
     (name "rust-dirs")