Subject: [PATCH 076/156] gnu: Add rust-mach2-0.4.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:53 +0100

* gnu/packages/crates-io.scm (rust-mach2-0.4): New variable.

Change-Id: I20b06f1dfcb97c1cd9d9ac70dd47138746e2fc20
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1dbf89442c0..f854f8eb785 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39622,6 +39622,29 @@ (define-public rust-m-lexer-0.0.4
 lexer.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-mach2-0.4
+  (package
+    (name "rust-mach2")
+    (version "0.4.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "mach2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "02gpyq89rcrqdbz4hgp5bpjas21dllxfc70jgw8vj0iaxg6mbf8r"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-libc" ,rust-libc-0.2))))
+    (home-page "https://github.com/JohnTitor/mach2")
+    (synopsis
+     "A Rust interface to the user-space API of the Mach 3.0 kernel that underlies OSX.")
+    (description
+     "This package provides a Rust interface to the user-space API of the Mach 3.0
+kernel that underlies OSX.")
+    (license (list license:bsd-2 license:expat license:asl2.0))))
+
 (define-public rust-mac-0.1
   (package
     (name "rust-mac")
-- 
2.41.0