guix-commits
[Top][All Lists]
Advanced

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

200/272: gnu: Add rust-rustc-version-0.3.


From: guix-commits
Subject: 200/272: gnu: Add rust-rustc-version-0.3.
Date: Sat, 13 Feb 2021 05:55:01 -0500 (EST)

ngz pushed a commit to branch master
in repository guix.

commit 0ba858ed891012485e73dd90f50e6bed5674c224
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Wed Feb 10 18:35:14 2021 +0100

    gnu: Add rust-rustc-version-0.3.
    
    * gnu/packages/crates-io.scm (rust-rustc-version-0.3): New variable.
    (rust-rustc-version-0.2): Inherit from above.
---
 gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++---------
 1 file changed, 25 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 922b1ff..8866a85 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33381,8 +33381,32 @@ require unstable language features.")
      "small helper to generate version information for git packages")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-rustc-version-0.3
+  (package
+    (name "rust-rustc-version")
+    (version "0.3.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rustc_version" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1vjmw7xcdri0spsf24mkpwpph853wrbqppihhw061i2igh4f5pzh"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-semver" ,rust-semver-0.11))))
+    (home-page "https://github.com/Kimundi/rustc-version-rs";)
+    (synopsis "Library for querying the version of an installed rustc 
compiler")
+    (description
+     "This package provides a library for querying the version of an installed
+rustc compiler.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-rustc-version-0.2
   (package
+    (inherit rust-rustc-version-0.3)
     (name "rust-rustc-version")
     (version "0.2.3")
     (source
@@ -33394,17 +33418,9 @@ require unstable language features.")
        (sha256
         (base32
          "02h3x57lcr8l2pm0a645s9whdh33pn5cnrwvn5cb57vcrc53x3hk"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
-       #:cargo-inputs (("rust-semver" ,rust-semver-0.9))))
-    (home-page "https://github.com/Kimundi/rustc-version-rs";)
-    (synopsis
-     "Library for querying the version of a installed rustc compiler")
-    (description
-     "This package provides a library for querying the version of a installed
-rustc compiler.")
-    (license (list license:expat license:asl2.0))))
+       #:cargo-inputs (("rust-semver" ,rust-semver-0.9))))))
 
 (define-public rust-rustdoc-stripper-0.1
   (package



reply via email to

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