diff mbox series

[bug#69890,29/43] gnu: Add rust-windows-bindgen-0.54.

Message ID 0693d8f8421e1edb3c49f76bc4f9147025cf9385.1710817681.git.normally_js@posteo.net
State New
Headers show
Series gnu: Add procs. | expand

Commit Message

normally_js March 19, 2024, 3:51 a.m. UTC
* gnu/packages/crates-windows.scm (rust-windows-bindgen-0.54): New variable.

Change-Id: If155c0d55b33a4defe899f8cbdf32cbce17624e3
---
 gnu/packages/crates-windows.scm | 33 +++++++++++++++++++++++++++------
 1 file changed, 27 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm
index 42097bbc39..66eea3b145 100644
--- a/gnu/packages/crates-windows.scm
+++ b/gnu/packages/crates-windows.scm
@@ -1551,8 +1551,34 @@  (define-public rust-windows-aarch64-msvc-0.28
                (base32
                 "1hpk0n2z0jzzvwlvs98b75sa4q920953nqfc119rv19nwm0mlsaj"))))))
 
+(define-public rust-windows-bindgen-0.54
+  (package
+    (name "rust-windows-bindgen")
+    (version "0.54.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "windows-bindgen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1hid039rnygimc2kxkzfc892j6hcdjpza2490ggz35r8fjs7csfq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-rayon" ,rust-rayon-1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-syn" ,rust-syn-2)
+        ("rust-windows-metadata" ,rust-windows-metadata-0.54))))
+    (home-page "https://github.com/microsoft/windows-rs")
+    (synopsis "Windows metadata compiler")
+    (description "Windows metadata compiler.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-windows-bindgen-0.52
   (package
+    (inherit rust-windows-bindgen-0.54)
     (name "rust-windows-bindgen")
     (version "0.52.0")
     (source
@@ -1562,16 +1588,11 @@  (define-public rust-windows-bindgen-0.52
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "071lrbhbvh0l8m1wf5000xxmcry1gjpqdxcqm23qmss9d05zn3lp"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
                        ("rust-rayon" ,rust-rayon-1)
                        ("rust-syn" ,rust-syn-2)
-                       ("rust-windows-metadata" ,rust-windows-metadata-0.52))))
-    (home-page "https://github.com/microsoft/windows-rs")
-    (synopsis "Windows metadata compiler")
-    (description "Windows metadata compiler.")
-    (license (list license:expat license:asl2.0))))
+                       ("rust-windows-metadata" ,rust-windows-metadata-0.52))))))
 
 (define-public rust-windows-bindgen-0.51
   (package