diff mbox series

[bug#67974,2/3] gnu: Add rust-databake-derive-0.1.

Message ID 0535508b97614244d2d5b357e0bb7901d83c460a.1703281739.git.jaeme@runbox.com
State New
Headers show
Series gnu: Add rust-databake-0.1 | expand

Commit Message

Jaeme Sifat Dec. 22, 2023, 10:11 p.m. UTC
* gnu/packages/crates-io.scm (rust-databake-derive-0.1): New variable.

Change-Id: Idd911a0ddb72eca8b59ec3366d9dd02e152a0c8d
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Comments

Maxim Cournoyer Jan. 4, 2024, 3:51 a.m. UTC | #1
Hi,

Jaeme Sifat <jaeme@runbox.com> writes:

> * gnu/packages/crates-io.scm (rust-databake-derive-0.1): New variable.
>
> Change-Id: Idd911a0ddb72eca8b59ec3366d9dd02e152a0c8d
> ---
>  gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>
> diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
> index 01090ec1a7..7e0517e967 100644
> --- a/gnu/packages/crates-io.scm
> +++ b/gnu/packages/crates-io.scm
> @@ -20498,6 +20498,30 @@ (define-public rust-dashmap-3
>               (setenv "RUSTC_BOOTSTRAP" "1")
>               #t)))))))
>  
> +(define-public rust-databake-derive-0.1
> +  (package
> +    (name "rust-databake-derive")
> +    (version "0.1.7")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (crate-uri "databake-derive" version))
> +       (file-name (string-append name "-" version ".tar.gz"))
> +       (sha256
> +        (base32 "0hqsjizibp0bb5m4kiqk9g2gixywqlxn513w5a366dpjv20z4yip"))))
> +    (build-system cargo-build-system)
> +    (arguments
> +     `(#:tests? #f ; Tries to use local import 'databake'

I'm not well Rust-versed; why is this a problem?  Can't we move the
check phase after the install phase, perhaps setting an environment
variable so the installed library is found?
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 01090ec1a7..7e0517e967 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20498,6 +20498,30 @@  (define-public rust-dashmap-3
              (setenv "RUSTC_BOOTSTRAP" "1")
              #t)))))))
 
+(define-public rust-databake-derive-0.1
+  (package
+    (name "rust-databake-derive")
+    (version "0.1.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "databake-derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0hqsjizibp0bb5m4kiqk9g2gixywqlxn513w5a366dpjv20z4yip"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; Tries to use local import 'databake'
+       #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2)
+                       ("rust-synstructure" ,rust-synstructure-0.13))))
+    (home-page "https://github.com/unicode-org/icu4x")
+    (synopsis "Custom derive for the @code{databake} crate")
+    (description
+     "This package provides the custom derive for the @code{databake} crate.")
+    (license license:unicode)))
+
 (define-public rust-data-encoding-2
   (package
     (name "rust-data-encoding")