Subject: Re: bug#67974: [PATCH 0/3 rust-team] gnu: Add rust-databake-0.1

From: Maxim Cournoyer <[email-masked]>
Date: Wed, 03 Jan 2024 22:51:38 -0500

Hi,

Jaeme Sifat <[email-masked]> 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?

-- 
Thanks,
Maxim