Subject: [PATCH 010/156] gnu: Add rust-atomic-write-file-0.1.

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

* gnu/packages/crates-io.scm (rust-atomic-write-file-0.1): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3e924650a6a..ae60fb96d1c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4933,6 +4933,27 @@ (define-public rust-atomic-polyfill-0.1
 they're not available.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-atomic-write-file-0.1
+  (package
+    (name "rust-atomic-write-file")
+    (version "0.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "atomic-write-file" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0dl4x0srdwjxm3zz3fj1c7m44i3b7mjiad550fqklj1n4bfbxkgd"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-nix" ,rust-nix-0.27)
+                       ("rust-rand" ,rust-rand-0.8))))
+    (home-page "https://github.com/andreacorbellini/rust-atomic-write-file")
+    (synopsis "Write files atomically to a file system")
+    (description "Write files atomically to a file system")
+    (license license:bsd-3)))
+
 (define-public rust-atomic-waker-1
   (package
     (name "rust-atomic-waker")
-- 
2.41.0