Subject: [bug#61958] [PATCH 31/32] gnu: Add rust-hermit-abi-0.3.

From: Arjan Adriaanse <[email-masked]>
Date: Sat, 4 Mar 2023 15:13:20 +0100

* gnu/packages/crates-io.scm (rust-hermit-abi-0.3): New variable.
(rust-hermit-abi-0.1): Inherit from above.
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++----
 1 file changed, 24 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8e1e3cf22b..d0ae7b90cf 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -25758,10 +25758,10 @@ (define-public rust-heck-0.3
        #:cargo-inputs
        (("rust-unicode-segmentation" ,rust-unicode-segmentation-1))))))
 
-(define-public rust-hermit-abi-0.1
+(define-public rust-hermit-abi-0.3
   (package
     (name "rust-hermit-abi")
-    (version "0.1.10")
+    (version "0.3.1")
     (source
       (origin
         (method url-fetch)
@@ -25770,13 +25770,13 @@ (define-public rust-hermit-abi-0.1
          (string-append name "-" version ".tar.gz"))
         (sha256
          (base32
-          "0blmmzik5cs79ivq70s9gal8ypgzj50wnl2hwsaam46gjjbz2p3j"))))
+          "11j2v3q58kmi5mhjvh6hfrb7il2yzg7gmdf5lpwnwwv6qj04im7y"))))
     (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
         (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
-         ("rust-libc" ,rust-libc-0.2)
+         ("rust-rustc-std-workspace-alloc" ,rust-rustc-std-workspace-alloc-1)
          ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))
     (home-page "https://github.com/hermitcore/rusty-hermit")
     (synopsis "Small interface to call functions from RustyHermit")
@@ -25785,6 +25785,26 @@ (define-public rust-hermit-abi-0.1
 It is used to build the target x86_64-unknown-hermit.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-hermit-abi-0.1
+  (package
+    (inherit rust-hermit-abi-0.3)
+    (name "rust-hermit-abi")
+    (version "0.1.20")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "hermit-abi" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1ypkwpf5r7m0jqdn2wfa0070i412kn9snvi1hg52w1yfvc40k8y7"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))))
+
 (define-public rust-hex-0.4
   (package
     (name "rust-hex")
-- 
2.39.1