help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Howto supply cargo-build-system dependency to guix package definitio


From: (
Subject: Re: Howto supply cargo-build-system dependency to guix package definition
Date: Mon, 24 Apr 2023 07:23:58 +0100

"(" <paren@disroot.org> writes:
> Timothy Washington <twashing@gmail.com> writes:
>>     (native-inputs
>>      `(("rustc" ,rustc)
>>        ("cargo" ,cargo)))
>>     (inputs
>>      `(("ansi_term" ,ansi-term)))
> You don't need these.
>
>>     (arguments
>>      `(#:cargo-inputs
>>        (("ansi-term" ,ansi-term))))
>
> Try this:
>
> ```
>     (arguments
>      (list #:cargo-inputs
>            #~`(("rust-ansi-term" ,rust-ansi-term-0.12))))
> ```

(You'll need to import (guix gexp) and (gnu packages cargo-xyz) for this
to work.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]