Subject: [bug#66839] [PATCH 02/19] gnu: Add rust-daemonize-0.5.

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

* gnu/packages/crates-io.scm (rust-daemonize-0.5): New variable.
---
 gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7306c0d4d2..9983f9ccb2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -19093,8 +19093,30 @@ (define-public rust-cxxbridge-macro-0.5
        #:cargo-development-inputs
        (("rust-cxx" ,rust-cxx-0.5))))))
 
+(define-public rust-daemonize-0.5
+  (package
+    (name "rust-daemonize")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "daemonize" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0vhikx85f85r46xghsb4avsv6ww8mz9lipqvsia7m21wrfmgv2xb"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))))
+    (home-page "https://github.com/knsd/daemonize")
+    (synopsis
+     "Library to enable code to run as a daemon process on Unix-like systems")
+    (description
+     "Daemoize is a Rust Library for writing system daemonis on Unix-like systems.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-daemonize-0.4
   (package
+    (inherit rust-daemonize-0.5)
     (name "rust-daemonize")
     (version "0.4.1")
     (source
@@ -19104,18 +19126,13 @@ (define-public rust-daemonize-0.4
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "05cqr2zjxrxyg23snykd03sgqwxn0pvwj2lzh50bclsgwc9lbhkh"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-boxfnonce" ,rust-boxfnonce-0.1)
         ("rust-libc" ,rust-libc-0.2))
        #:cargo-development-inputs
-       (("rust-tempdir" ,rust-tempdir-0.3))))
-    (home-page "https://github.com/knsd/daemonize")
-    (synopsis "Library for writing system daemons")
-    (description "Daemonize is a Rust library for writing system deaemons.")
-    (license (list license:expat license:asl2.0))))
+       (("rust-tempdir" ,rust-tempdir-0.3))))))
 
 (define-public rust-darling-0.20
   (package
-- 
2.41.0