Subject: [PATCH v7 35/44] gnu: Add rust-self-replace-1.

From: Jordan Moore <[email-masked]>
Date: Sat, 11 Jan 2025 10:11:25 -0500

* gnu/packages/crates-io.scm (rust-self-replace-1): New variable.

Change-Id: I89968eb1bf67938f3473a755b82f9f73e35cab17
---
 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 21c0e2f6d5..7020d57f2f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -69772,6 +69772,31 @@ (define-public rust-self-cell-1
 in stable Rust.")
     (license license:asl2.0)))
 
+(define-public rust-self-replace-1
+  (package
+    (name "rust-self-replace")
+    (version "1.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "self-replace" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1drganasvf5b0x6c9g60jkfhzjc9in3r6cznjfw0lhmbbrdq3v03"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ;crate does not package test dependencies
+       #:cargo-inputs (("rust-fastrand" ,rust-fastrand-2)
+                       ("rust-tempfile" ,rust-tempfile-3)
+                       ("rust-windows-sys" ,rust-windows-sys-0.52))))
+    (home-page "https://github.com/mitsuhiko/self-replace")
+    (synopsis
+     "Utility crate that allows executables to replace or uninstall themselves")
+    (description
+     "This package provides Utility crate that allows executables to replace or
+uninstall themselves.")
+    (license license:asl2.0)))
+
 (define-public rust-self-update-0.41
   (package
     (name "rust-self-update")
-- 
2.46.0