Subject: [PATCH 16/19] gnu: Update rust-reopen-0.3.

From: Steve George <[email-masked]>
Date: Mon, 30 Oct 2023 21:06:22 +0000

* gnu/packages/crates-io.scm (rust-reopen-0.3):
[source]: Add snippet to loosen signal-hook dependency.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f5dc4a5c80..36888020ea 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -57957,20 +57957,23 @@ (define-public rust-reopen-0.3
     (name "rust-reopen")
     (version "0.3.0")
     (source
-      (origin
-        (method url-fetch)
-        (uri (crate-uri "reopen" version))
-        (file-name
-         (string-append name "-" version ".tar.gz"))
-        (sha256
-         (base32
-          "12b3mfxkwb8akdfa701nzvqr6lsc6n84vrq088gmjy8lxlmr4an6"))))
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "reopen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "12b3mfxkwb8akdfa701nzvqr6lsc6n84vrq088gmjy8lxlmr4an6"))
+       (snippet #~(begin
+                    (use-modules (guix build utils))
+                    (substitute* "Cargo.toml.orig"
+                      (("signal-hook.*")
+                       "signal-hook = \"^0.3\"\n"))
+                    (copy-file "Cargo.toml.orig" "Cargo.toml")))))
     (build-system cargo-build-system)
     (arguments
-      `(#:skip-build? #t
-        #:cargo-inputs
-        (("rust-signal-hook" ,rust-signal-hook-0.1)
-         ("rust-libc" ,rust-libc-0.2))))
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-signal-hook" ,rust-signal-hook-0.1)
+                       ("rust-libc" ,rust-libc-0.2))))
     (home-page "https://github.com/vorner/reopen")
     (synopsis "File reopening utility")
     (description "File reopening utility.")
-- 
2.41.0