guix-commits
[Top][All Lists]
Advanced

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

15/39: gnu: Add rust-resolv-conf-0.7.


From: guix-commits
Subject: 15/39: gnu: Add rust-resolv-conf-0.7.
Date: Wed, 10 Mar 2021 17:52:18 -0500 (EST)

ngz pushed a commit to branch master
in repository guix.

commit 785cbb09895e6f8db57bce2570e418a72fd3f9aa
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Wed Mar 10 16:30:50 2021 +0100

    gnu: Add rust-resolv-conf-0.7.
    
    * gnu/packages/crates-io.scm (rust-resolv-conf-0.7): New variable.
    (rust-resolv-conf-0.6): Inherit from above.
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++--------
 1 file changed, 25 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bd5963f..686b835 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32257,8 +32257,32 @@ uses finite automata and guarantees linear time 
matching on all inputs.")
        (("rust-doc-comment" ,rust-doc-comment-0.3)
         ("rust-libflate" ,rust-libflate-0.1))))))
 
+(define-public rust-resolv-conf-0.7
+  (package
+    (name "rust-resolv-conf")
+    (version "0.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "resolv-conf" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "005sk8r1php2g41yn7fdf1sn8cafyaqm6jxia42h2v88saa47r2j"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-hostname" ,rust-hostname-0.3)
+        ("rust-quick-error" ,rust-quick-error-1))))
+    (home-page "http://github.com/tailhook/resolv-conf";)
+    (synopsis "Parser for @file{/etc/resolv.conf}")
+    (description
+     "This package provides a parser for @file{/etc/resolv.conf} file.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-resolv-conf-0.6
   (package
+    (inherit rust-resolv-conf-0.7)
     (name "rust-resolv-conf")
     (version "0.6.3")
     (source
@@ -32269,18 +32293,11 @@ uses finite automata and guarantees linear time 
matching on all inputs.")
         (sha256
          (base32
           "0jlzifww1h7j23jnjj49xz8q0fpd9rqpd0ks8c4y651vgw9lx0qi"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f  ; Not all test files included.
        #:cargo-inputs
        (("rust-quick-error" ,rust-quick-error-1)
-        ("rust-hostname" ,rust-hostname-0.3))))
-    (home-page "https://github.com/tailhook/resolv-conf";)
-    (synopsis "Parser for /etc/resolv.conf")
-    (description
-     "An /etc/resolv.conf parser crate for Rust.")
-    (license (list license:asl2.0
-                   license:expat))))
+        ("rust-hostname" ,rust-hostname-0.3))))))
 
 (define-public rust-result-1
   (package



reply via email to

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