aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-05 19:26:01 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-06 15:46:03 +0300
commitb79eab74a14992ff382e7f40a9fd13de11728bb9 (patch)
tree8a7b6143d86af315b8acd73a25682f2e9777a5fb
parent01519b3d9f87790ecf743426d2a8bfed2ae87cb8 (diff)
downloadguix-b79eab74a14992ff382e7f40a9fd13de11728bb9.tar
guix-b79eab74a14992ff382e7f40a9fd13de11728bb9.tar.gz
gnu: Add rust-glob.
* gnu/packages/crates-io.scm (rust-glob): New variable.
-rw-r--r--gnu/packages/crates-io.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f2aafa43c9..e6a081d9c3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -931,6 +931,38 @@ archive to be linked into Rustcode.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-glob
+ (package
+ (name "rust-glob")
+ (version "0.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "glob" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0x25wfr7vg3mzxc9x05dcphvd3nwlcmbnxrvwcvrrdwplcrrk4cv"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-development-inputs
+ (("rust-tempdir" ,rust-tempdir))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ ;; This test assumes /root exists but is unreadable by the user.
+ (lambda _
+ (substitute* "src/lib.rs"
+ (("cfg\\(all\\(unix,.*") "cfg(windows)]\n"))
+ #t)))))
+ (home-page "https://github.com/rust-lang-nursery/glob")
+ (synopsis "Match file paths against Unix shell style patterns")
+ (description
+ "This package provides support for matching file paths against Unix
+shell style patterns.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-heapsize
(package
(name "rust-heapsize")