From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iE0lFPBeR2R2IAEASxT56A (envelope-from ) for ; Tue, 25 Apr 2023 07:02:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4FwtE/BeR2RipgAAG6o9tA (envelope-from ) for ; Tue, 25 Apr 2023 07:02:40 +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 0C66910E6D for ; Tue, 25 Apr 2023 07:02:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prAoR-0001iE-O2; Tue, 25 Apr 2023 01:02:00 -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 1pr9fp-0001Zy-2W for help-guix@gnu.org; Mon, 24 Apr 2023 23:49:01 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pr9fm-0002nK-Bl for help-guix@gnu.org; Mon, 24 Apr 2023 23:49:00 -0400 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5066ce4f725so7630911a12.1 for ; Mon, 24 Apr 2023 20:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682394536; x=1684986536; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=aSO1hAZ9ZqnNwDbl3Dd1yQRaxfHcxdv2H1mounXdjzw=; b=F2XJHoIM8cQVtSj5v6Wyw8XyQZUWzEbfhniQc1VRSLhOvDXvErnbPTii0T39qbglWU Q68xZvFMmUjH4IC9AgIfvqF8+xwBOkMx9cvthGOQ+axTF5h8o+sLrZgKdVkxjXiiM/jV TtnwEDlG16jk5E0mc+5iZpxrQBZAqOadEIrPJgdoHblqwatT+Qe7EgtqCb6YS1Csjfg2 ezq6I4x+Gj89dykG9qZo4t9df+rqv0Kst2FLWS2w3t5BZ6G4GrXQn7wwQDZ1Qva65KYG fsV4fkUTVEMAVg3K6vZIWO2O5aVb6kRiozxj48504TauKnpdVdavr/3anrifASAWE8xu fMtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682394536; x=1684986536; 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=aSO1hAZ9ZqnNwDbl3Dd1yQRaxfHcxdv2H1mounXdjzw=; b=RMf2OOgmnpV61FO1+uXeZqNIixjJk18MzvpAa8kCBCS5+NIFLgTnQ0tWKPxJn+I6uy N7uBioaApyNkUWtX8/1ghVkSPkVb9NUGUxgtUMjzGlSw3g6xhGZHUNuPL//aC3CZ6i06 q2K9umcY8QT6hUr1UXlVQc2FhfVuyJA9uPBCGl/HsaNW1CvOqCYqvKZdh5vLJx+2enCA hPmjJIUaq8Y/KM0Dw5wZg4+vA2S4TOURn21Khed5cfE9k2ThVAiec0YExuNjqHeHHFqj o91Ui6aqnlFfYz5qZkJtYXFkt+5b2fy32671PWuo22IH7VfGerMsus7shtdgZyFF80UK 0/Jw== X-Gm-Message-State: AAQBX9fik809o3BUg9VSU2nzHumxOTiP+0TNEevLdyXIZnvNrvVN2mhT FXX6extjlJTRf8+RDINahxW/IXclTGzXg+DPl/0= X-Google-Smtp-Source: AKy350aS/zqwSbgzAzy2ESd313RH3VLXmo1bpg6fSd12h9d6S83fpG5/cc38+lXcKDsNyB0Ar4MVyrOiKaeDdLpGjDs= X-Received: by 2002:aa7:d796:0:b0:506:b8ca:e07e with SMTP id s22-20020aa7d796000000b00506b8cae07emr12407596edq.11.1682394535980; Mon, 24 Apr 2023 20:48:55 -0700 (PDT) MIME-Version: 1.0 References: <87ttx5g5qj.fsf@disroot.org> <87mt2xg5l5.fsf@disroot.org> In-Reply-To: <87mt2xg5l5.fsf@disroot.org> From: Timothy Washington Date: Mon, 24 Apr 2023 23:48:44 -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::529; envelope-from=twashing@gmail.com; helo=mail-ed1-x529.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: Tue, 25 Apr 2023 01:01:50 -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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682398960; a=rsa-sha256; cv=none; b=txcyHiGmCiXLyxKC/WTaNckQxSBjTZVHeToIThAqBzTOAgxi4LcZjOyz10Z3FKx15j+nLV dk/1H5nRrrkqBudASZmd7iDMEpYuZYcchZOo5eklGYpzq/yTbrG7ZdNnwtG7TlaNBP5baS bFJiob1VvAveNb8nvoNx6JEg4qH4Nc68JkPkUJt94XLcmOiFFWVwF7H4GT2ykpx72Kw0tn yidrWNi5mg4FYu5rcA/9bcPENatFr8fxoev5ekPxprdyHuYWp9wKhTK2KeyPs4c2cAtlvG ebVI6GGRWeSBOH4Zb2TXoTgGATEOZpyL/twekScSgkr9Jb9eZQXo1O1DjlSwmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b=F2XJHoIM; 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=1682398960; 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=HQBEtOllxHU3Eg7ExNvNfjN4YulrG1f1pA+n7IXdEes=; b=txIJB9Knia8N5DscpM/3dHaOQyvQUCNXyDlZTPH1gT+DAf4lvGG+ejpFNIbXCKjz7NoebS U+eJF2oQTexv7ooHtZJd93W1u0KokNHXJGY484IyKwKtpxjsJH+ULneI9xRGr3JBf4EPE0 C55F3BEipNWus28raHRmrxkSsR6t1arQ6Ft8cT/LQtVZIHWGOcSuupc8lezo9IrlljrXNf YKfjilkFGdjfOKesZFR/2jrX0lbqq8t4dhX3/fGMHIViL7KqW8pcfHyHxGro2B/k45KWUW V9anm7bgQdCF4+kaL/67PHylRgkMGkilG0BaJSX4dM0Iz3xCXovtArGK6fWKjw== X-Migadu-Spam-Score: 1.19 X-Spam-Score: 1.19 X-Migadu-Queue-Id: 0C66910E6D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b=F2XJHoIM; 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-TUID: nR1iVeTNjB52 You've gotten me quite a bit further. This is great. Now, "guix build ..." breaks if I try to include "(gnu packages cargo-xyz)" (*or "(guix packages cargo-xyz)"*). A. guix build -L ~/dotfiles/ rustscan ... no code for module (gnu packages cargo-xyz) B. And I don't see cargo-xyz in these locations. - https://packages.guix.gnu.org/search/?query=cargo-xyz - https://packages.guix.gnu.org/search/?query=cargo - https://packages.guix.gnu.org/search/?query=xyz C. I disabled cargo-xyz and included "crates-graphics" to no avail. Is it having a problem with "rust-ansi-term-0.12"? Because I definitely see it here. https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/crates-graphics.scm#n137 guix build -L ~/dotfiles/ rustscan ... ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure append: Wrong type argument in position 1 (expecting empty list): # D. (define-module (guix packages rustscan) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system cargo) #:use-module (guix gexp) #:use-module (gnu packages crates-graphics) ;; << enabled ;; #:use-module (gnu packages cargo-xyz) ;; << disabled #:use-module (guix licenses)) (define-public rustscan (package (name "rustscan") (version "2.1.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/RustScan/RustScan.git") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "1hs065rrk40ksbxh413fbgnr760adgw9dlg5qqv6xb04ra0n0hjf")))) (build-system cargo-build-system) (arguments (list #:cargo-inputs #~`(("rust-ansi-term" ,rust-ansi-term-0.12)))) (home-page "https://github.com/RustScan/RustScan") (synopsis "A fast port scanner written in Rust") (description "RustScan is a fast port scanner that utilizes the Rust programming language to scan for open ports on IP addresses.") (license gpl3+))) On Mon, 24 Apr 2023 at 02:24, ( wrote: > "(" writes: > > Timothy Washington 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.) > >