[bug#75127,30/67] gnu: Add rust-win32job-2.

Message ID 47918633d8179c485aff08119dcf5f93ad5070b1.1735253329.git.lockbox@struct.foo
State New
Headers
Series rust-team: Add cargo-nextest |

Commit Message

Jordan Moore Dec. 26, 2024, 11:11 p.m. UTC
  * gnu/packages/crates-windows.scm (rust-win32job-2): New variable.

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

Patch

diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm
index 5bce3536b5..f13375b9b8 100644
--- a/gnu/packages/crates-windows.scm
+++ b/gnu/packages/crates-windows.scm
@@ -971,6 +971,27 @@  (define-public rust-win-crypto-ng-0.5
     (description "Safe bindings to Windows Cryptography API: Next Generation")
     (license license:bsd-3)))
 
+(define-public rust-win32job-2
+  (package
+    (name "rust-win32job")
+    (version "2.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "win32job" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0g1blsb7ixrqjicykx82rvrymcydlsdgfwzb61x88iyrazsinasv"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-windows" ,rust-windows-0.52))))
+    (home-page "https://github.com/ohadravid/win32job-rs")
+    (synopsis "safe API for Windows' job objects.")
+    (description "This package provides a safe API for Windows job objects.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-winapi-0.3
   (package
     (name "rust-winapi")