diff mbox series

[bug#74234,PATCHv2,rust-team,14/20] gnu: Add rust-manifest-dir-macros-0.1.

Message ID 068386165d4a9f4bd217533873c6a38faaf30fb7.1731018437.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74234,PATCHv2,rust-team,01/20] gnu: Add rust-ashpd-0.6. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:27 p.m. UTC
* gnu/packages/crates-io.scm (rust-manifest-dir-macros-0.1): New variable.

Change-Id: Idc496ce8efcbf6d3742d4a2c04c04502cf8d323c
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 572f00f052..5fd162e9ff 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42795,6 +42795,33 @@  (define-public rust-malloc-buf-0.0
     (arguments
      `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))))))
 
+(define-public rust-manifest-dir-macros-0.1
+  (package
+    (name "rust-manifest-dir-macros")
+    (version "0.1.18")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "manifest-dir-macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "14zm557gcm1ldr19ry53ngvni8vqaicm01xa5vg8pgyd3kg40vcw"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-mime-guess" ,rust-mime-guess-2)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "https://magiclen.org/manifest-dir-macros")
+    (synopsis
+     "This crate provides function-like macros to check or operate paths
+relative to CARGO_MANIFEST_DIR at compile time")
+    (description
+     "This crate provides function-like macros to check or operate paths relative to
+CARGO_MANIFEST_DIR at compile time.")
+    (license license:expat)))
+
 (define-public rust-maplit-1
   (package
     (name "rust-maplit")