guix-commits
[Top][All Lists]
Advanced

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

36/41: gnu: Add rust-glob-0.2.


From: guix-commits
Subject: 36/41: gnu: Add rust-glob-0.2.
Date: Fri, 6 Sep 2019 08:47:31 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit cef7de6fa61761f905876414debca94cadb01e07
Author: Efraim Flashner <address@hidden>
Date:   Thu Sep 5 20:18:31 2019 +0300

    gnu: Add rust-glob-0.2.
    
    * gnu/packages/crates-io.scm (rust-glob-0.2): New variable.
---
 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 e6a081d..c6aee38 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -963,6 +963,31 @@ shell style patterns.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-glob-0.2
+  (package
+    (inherit rust-glob)
+    (name "rust-glob")
+    (version "0.2.11")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "glob" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "1ysvi72slkw784fcsymgj4308c3y03gwjjzqxp80xdjnkbh8vqcb"))))
+    (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\\(unix") "cfg(windows"))
+             #t)))))))
+
 (define-public rust-heapsize
   (package
     (name "rust-heapsize")



reply via email to

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