all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Timothy Washington <twashing@gmail.com>
To: "(" <paren@disroot.org>
Cc: help-guix@gnu.org
Subject: Re: Howto supply cargo-build-system dependency to guix package definition
Date: Thu, 27 Apr 2023 23:06:35 -0400	[thread overview]
Message-ID: <CAADtM-Zbj3Oynd3yWbr2wQawTsOZyPoouKyJ994Xf0ekBAQrVA@mail.gmail.com> (raw)
In-Reply-To: <87zg6tz3fi.fsf@disroot.org>

Ok nice. I got much further with the rust-anyhow definition here
<https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/crates-io.scm#n2773>
(in crates-io).

With these arguments..

   (arguments
    `(#:cargo-inputs
      (("rust-ansi-term" ,rust-ansi-term-0.12)
       ("rust-anyhow" ,rust-anyhow-1))))


..the build fails on missing "cidr-utils". Now "cidr-utils" is in Rust's
crates.io <https://crates.io/crates/cidr-utils>.
But is that what Guix' cargo-build-system is referencing?
Otherwise, do we need to create a Guix .scm (scheme definition)?

starting phase `build'
error: no matching package found
searched package name: `cidr-utils`
perhaps you meant:      pin-utils
location searched: registry `crates-io`
required by package `rustscan v2.1.1
(/tmp/guix-build-rustscan-2.1.1.drv-0/source)`
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "cargo" arguments: ("build"
"--release") exit-status: 101 term-signal: #f stop-signal: #f>



Tim


On Thu, 27 Apr 2023 at 12:37, ( <paren@disroot.org> wrote:

> Timothy Washington <twashing@gmail.com> writes:
> >  starting phase `build'
> >  error: no matching package named `anyhow` found
> >  location searched: registry `crates-io`
> >  required by package `rustscan v2.1.1
> (/tmp/guix-build-rustscan-2.1.1.drv-0/source)`
>
> Just add the input to the #:CARGO-INPUTS:
>
> ```
> `(...
>   (("rust-anyhow" ,rust-anyhow-2)))
> ```
>
> Make sure to keep the inputs in alphabetical order :)
>

  reply	other threads:[~2023-05-01 14:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-23 16:18 Howto supply cargo-build-system dependency to guix package definition Timothy Washington
2023-04-24  6:19 ` (
2023-04-24  6:23   ` (
2023-04-25  3:48     ` Timothy Washington
2023-04-25  5:56       ` (
2023-04-25 20:44         ` Timothy Washington
2023-04-26  5:43           ` (
2023-04-27  4:53             ` Timothy Washington
2023-04-27 16:36               ` (
2023-04-28  3:06                 ` Timothy Washington [this message]
2023-04-28 14:23                   ` (
2023-04-28 20:08                     ` Timothy Washington

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAADtM-Zbj3Oynd3yWbr2wQawTsOZyPoouKyJ994Xf0ekBAQrVA@mail.gmail.com \
    --to=twashing@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=paren@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.