From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OFioMEjST2T0KQAASxT56A (envelope-from ) for ; Mon, 01 May 2023 16:52:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WDyQMEjST2TKdwEAauVa8A (envelope-from ) for ; Mon, 01 May 2023 16:52:56 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8BC7414D70 for ; Mon, 1 May 2023 16:52:56 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptSWB-0006ua-TK; Mon, 01 May 2023 08:20:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psERf-0001Ei-6C for help-guix@gnu.org; Thu, 27 Apr 2023 23:06:51 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psERc-0007nd-Vf for help-guix@gnu.org; Thu, 27 Apr 2023 23:06:50 -0400 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5083bd8e226so14258526a12.3 for ; Thu, 27 Apr 2023 20:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682651207; x=1685243207; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CEtDzXA/P5e0h/pa4qJThWNpezuiougXW7upjSqGu9k=; b=eihiNKKaKllJoRprBaM8zviD8IYr0eEDAo9vIh6D0spii3eESXt6+ot5vYzcv7vElT NH85u8wRmzcwzbXt2d6KytY+vfTzK8q1inIVnEQETpganUhjyUng4BtezC+dmhXfv0z2 7BeZ5esHVARdAw/5yzbKSFca/nvhTrtyGXCORHRT7a7zHmRgZdu8SUix73Wcp+P2W8WM qoHKZvxPU6rvOLpTUWsU9ptE5ZDThG/+JpJ4xJXYcIusEfQgC/BZRYYGffKdc4874dSA H/j+skQNDgIR+zfuLV0TS/+0gOwv/AjIYZyKSYM6JgkPL26ID8Kbv5oF0YpNHoWtup6w lKjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682651207; x=1685243207; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CEtDzXA/P5e0h/pa4qJThWNpezuiougXW7upjSqGu9k=; b=ZZCAyaiHaPovmXUAqdeO447PKHTI3PKav6tOmIU4jj7nS5LsKt8ejmva2b4zVifszW XAuQ9D2jt8vFMHhk57sv4OU+qG7jETCyaWcG0BiS/VOlWEjOfbx3az/4bUb7xEWyqPvO IhqgHRKEWhurUh2dDybueTEiq6WP/7h/aTsEXyTm7kD+FbLXd+1R6cJyvgYwcwI9Zl5M uDzJDOqCQoyJ/zBoZGXP+YwzyAxwp16kYoCnOEUuxfwulmYHgnFQpj5x1vs7hOKoF2SC TPqrfrkhKScrkmx2q4IpaHeZWQsPOIAHvdr0e3jnU3IYKTXipSV76iZVOOn4lm1i7YOQ JoUA== X-Gm-Message-State: AC+VfDxwK/2k5aG+k02YK3JOSem9E5MY5NZw8R7JkmKmkGu0Q1eV5VwF BC2F/rLUB1+A8e67w8NKibt1/jLlkD4iYdqoOFc= X-Google-Smtp-Source: ACHHUZ57BIQXr195JCx5Lf40ravHnap8xkn4Eyi/I4Yo5Rn1g08wb5R1jSCpp6iPA98KtQDBhko4GAdriH7prBs/A54= X-Received: by 2002:a17:907:7ea2:b0:94f:7edf:8fa1 with SMTP id qb34-20020a1709077ea200b0094f7edf8fa1mr3776775ejc.32.1682651207001; Thu, 27 Apr 2023 20:06:47 -0700 (PDT) MIME-Version: 1.0 References: <87ttx5g5qj.fsf@disroot.org> <87mt2xg5l5.fsf@disroot.org> <87fs8ojyhc.fsf@disroot.org> <87edo7fbau.fsf@disroot.org> <87zg6tz3fi.fsf@disroot.org> In-Reply-To: <87zg6tz3fi.fsf@disroot.org> From: Timothy Washington Date: Thu, 27 Apr 2023 23:06:35 -0400 Message-ID: Subject: Re: Howto supply cargo-build-system dependency to guix package definition To: "(" Cc: help-guix@gnu.org Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=twashing@gmail.com; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 01 May 2023 08:20:34 -0400 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682952776; a=rsa-sha256; cv=none; b=HgQXH9EYsXtaxRSkkdmMTee8pNkY3ga4R2Y+eaDZHXcLiS9+yLsbVBqJTf116wJYTKJEGa D6TRKbTMRebHNgEnAX3ewA7fcymh5MNLoaUg+e6xc9qNyjZMCRL9uG514HCd4+TDSfLien Mz4qIl1oz67Rx1wjkLcTeUb00UODOB48v8PZijCYnEQgmHF15Ym9Qaf6J1jzv9uxSAmJg3 QSZbkxuYY0YoOd5FSg2rX2KjEreQybyGaqrk+WaPg9CFMFlKO9tPKsChFjiEOct8MzqByB WKey5h48bqeXAdCi8rxjz2o6ZOmj8NCqrklQ6YgMM46gDIouDDXQY5bEgPiJag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b=eihiNKKa; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682952776; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EIHhdojUNjC2+Bwo3uO6bM/jqCvB4mVZ2DBmkLusbnE=; b=TEvrIi4LqUOBsayJ37u4hDFoa7zEPTmfDs7kZm3sQNyJO7cYgsjIzf6yC3UgBTK5KtDWJF 2oZvEKdKqQsTfF0u+VKt/LGR73xobcJ+bOOobVq3BknTOrI/3ttEkskxrVzJRvM3SaHccS nMZBfEykfHo8PrhKPBkxRCur9OT8MZ7B2b8GGGGATt3ps+DebHTwimfO97nedJbV2w4dzJ y5rISjBliu2FwIU41fFjJ9ka+qmFOOylrbbkR6fv+2tX/Sp99H1ynN+PyVxTWwmB/ZEw6N BZdW/3+d1lGZdYGadrp2BhHBvcV98yLc5Y+JGWulbYwvTTfGnYUmVCPHQOxZQg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b=eihiNKKa; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.99 X-Spam-Score: 6.99 X-Migadu-Queue-Id: 8BC7414D70 X-TUID: OOCU6C0BJlvG Ok nice. I got much further with the rust-anyhow definition here (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 . 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, ( wrote: > Timothy Washington 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 :) >