Subject: [PATCH 22/42] gnu: Add rust-page-size-0.5.

From: Wilko Meyer <[email-masked]>
Date: Tue, 2 Apr 2024 18:22:39 +0200

* gnu/packages/crates-io.scm (rust-page-size-0.5): New variable.

Change-Id: I409c475e89515aa19c6a619bafd866204a0ce94f
---
 gnu/packages/crates-io.scm | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3527d399dd..e60e1d9160 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50296,10 +50296,29 @@ (define-public rust-page-size-0.6
 memory page size.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-page-size-0.4
+(define-public rust-page-size-0.5
   (package
     (inherit rust-page-size-0.6)
     (name "rust-page-size")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "page_size" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0qdm2b6h63bwxy8s6jccd1v30f6dysbq9ylfs0cdikwhs75n6xhv"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #f
+       #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-spin" ,rust-spin-0.9)
+                       ("rust-winapi" ,rust-winapi-0.3))))))
+
+(define-public rust-page-size-0.4
+  (package
+    (inherit rust-page-size-0.5)
+    (name "rust-page-size")
     (version "0.4.2")
     (source
      (origin
-- 
2.41.0