Subject: [PATCH 13/36] gnu: Add rust-mmap-fixed-0.1.6.

From: VÖRÖSKŐI András <[email-masked]>
Date: Sat, 18 May 2024 08:45:35 +0200

* gnu/packages/crates-io.scm (rust-mmap-fixed-0.1): New variable.

Change-Id: Ic8996b1fcde3af770815d80b47043de826e5fc23
---
 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 bb1ff17014..6690629b7f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42744,6 +42744,31 @@ (define-public rust-mirai-annotations-1
     (description "Macros that provide source code annotations for MIRAI")
     (license license:expat)))
 
+(define-public rust-mmap-fixed-0.1
+  (package
+    (name "rust-mmap-fixed")
+    (version "0.1.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "mmap-fixed" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "106lbziidb8bwi3bs4hx5znjlwkh7x6x08qdg0914rpcd2w1qw1v"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-winapi" ,rust-winapi-0.3))
+       #:cargo-development-inputs (("rust-tempdir" ,rust-tempdir-0.3))))
+    (home-page "https://github.com/khang06/rust-mmap-fixed-fixed")
+    (synopsis "library for memory-mapped I/O")
+    (description
+     "This package provides a library for dealing with memory-mapped I/O This is a
+fork of a fork of the original rust-mmap with updated dependencies and a fix for
+the Windows version.  This exists only because there are no other alternative
+crates for `MAP_FIXED` allocations.")
+    (license license:expat)))
+
 (define-public rust-mock-instant-0.3
   (package
     (name "rust-mock-instant")
-- 
2.41.0