From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KNG3MNNLZGXAawAAG6o9tA:P1 (envelope-from ) for ; Mon, 27 Nov 2023 08:57:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KNG3MNNLZGXAawAAG6o9tA (envelope-from ) for ; Mon, 27 Nov 2023 08:57:07 +0100 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 39621132C8 for ; Mon, 27 Nov 2023 08:57:07 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="mHVt/3iC"; dmarc=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=1701071827; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=0wdgyInvkENI03SFHrO8RtBH1ZwXD2c+IL1ztmL5F6I=; b=H1OPtvRJQyxA7n7BftgX0rNFh9XG4j6HlLfgyLsp1+tgpAlJ7vKN8y7IkkS/OrThtia4ZS JJ/1SlwknFGttrcRp4tGRNutRlpTbHkI1eCFo1/e+RlXsPESNpANN1s4cYZVggM/KvbwvS Ery1zJmN4I3Aw9FNb9nqKfJFl9Ksc6Bt+u8JMVdI4feaFKxCn9suaWkL5DeawkU0OO6mQ5 +0Lx6Jx+Ct5ufX3Xj6VcbDBp9lqbMoZQj3iTA6JdJwlD4bBTSuPCjHN7zuzFMHurgj/Nfy i6Pjw324758tFGnfPutoaXe4n4ALj3lIfTYEevKvbfP2gOaLc8Bk3TJV2jBdZw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701071827; a=rsa-sha256; cv=none; b=LUKw7li2vc2ThMU5K5Nro8uJOEcPs27apKSVMQOR26E4/WHtuwJrGFgMG8ik2upHssAQq2 f45efiAVflhqxEeyFdGFo9tRxexso1wxLM7XeHcQTdmh0kV2BxjsfBo7PjfdFTZV4QwmPq /8b9psXs2CJA4Am3fxKNNxmvaOHzM7MUdSsj3xondF/STRhc6EtUErNG1BiPQrA0rAQ/4E DV7K/E+0do6q08IsB+zd6i2zSD7eiQYn6B1FOJBvnZRKrS6s1kTyIiGw+h5IzcJOgbtkeh Re1k4C9VZq/sJj00TpRAAK6xvRY5OHTSt7WpoFbQuved2ftGo0M7tis4Z9FP7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="mHVt/3iC"; dmarc=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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7WTz-0000UW-Eq; Mon, 27 Nov 2023 02:56:43 -0500 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 1r7WTu-0000UI-CH for help-guix@gnu.org; Mon, 27 Nov 2023 02:56:39 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7WTq-0007Eb-6X for help-guix@gnu.org; Mon, 27 Nov 2023 02:56:38 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40b399a6529so14170545e9.1 for ; Sun, 26 Nov 2023 23:56:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701071791; x=1701676591; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=0wdgyInvkENI03SFHrO8RtBH1ZwXD2c+IL1ztmL5F6I=; b=mHVt/3iCEIyIiWt01TjQoUhDn5PhaqJ3QjVyyn8sdWYN0Kr5KZoBWMM+KJ6/Y3r9uy zvVzHtiFGBMHcI4B4B1/wgclNcY066dTSxss+RJryBDf6G7jd0ooH0O+dTqrRUePLPkY GKClx3R6OiCVdX6aUV0sMVUn0Q2ZShU+wRg7XzBPIYRKVFivIYO5lBrlUOMNq3ftyiTK uWrzRrPOV/luDJQOWRvfKLoJeoudyjAGd21W/FzKK2VfvcoDkogr4oZ78Sa+D8eotDto DS4GTSF39l5TDnqH8wtjMLe1XKttg/XZQ9pz+Jk/+UoP+r/aKJz9qzrqsDQ0TYtEtbsx 273w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701071791; x=1701676591; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0wdgyInvkENI03SFHrO8RtBH1ZwXD2c+IL1ztmL5F6I=; b=WdEu08YNYTh0cT3wK+y0shRs+ynDuAs9zEkfFgPdK9T6zX9zoYMdYA5rIEz322dw2K Ghpr9AWIEnaI0NgQ/LfJcvIOSPqYoL1pGxPLzj2hZOFqTkY1VcLAzouiqMQZSAq8Ywjl kdI1V+7mW/dZSnlhx6HGWyVOZZ8fbUOFTdv+YQ9f77GaLQ7bYN2sRdh+GTe2Roe9ssEn FWU2N4pV176ECW/3hmKko/SMyW3wKw80vZGi+n+p/4s+wIFi0dMyOZAzhISneLVxtrun ZvmOvoAlaliI0qJYp9HqYjusOuyz4MZmG1U/bcx/A3nPaLq/LAbkUWU1pYIHfhTdb4at Hsng== X-Gm-Message-State: AOJu0Yz0XBp6v98ZO1vsRbtOoSzuIEHdi6ligokLzhp+gLnqxkfeUIcE sWz6KtuzjsKe2JclQgMqkb9wRFnzX3oqww== X-Google-Smtp-Source: AGHT+IHYrHiMKrdExk3EKKxTv/2IikdWOHC0f5FMUc8JN5VfIql/S6vxDNHUWBZhXZUc+3dznVdtjA== X-Received: by 2002:a05:600c:34ce:b0:401:c7ec:b930 with SMTP id d14-20020a05600c34ce00b00401c7ecb930mr11892903wmq.10.1701071791198; Sun, 26 Nov 2023 23:56:31 -0800 (PST) Received: from localhost ([176.12.138.93]) by smtp.gmail.com with ESMTPSA id k32-20020a05600c1ca000b0040839fcb217sm12972399wms.8.2023.11.26.23.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 23:56:30 -0800 (PST) Date: Mon, 27 Nov 2023 09:56:29 +0200 From: Efraim Flashner To: Abdullah Imad , help-guix@gnu.org Subject: Re: Confusion regarding rust packages in guix Message-ID: Mail-Followup-To: Abdullah Imad , help-guix@gnu.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iOR3gTzMnY6teYBX" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=efraim.flashner@gmail.com; helo=mail-wm1-x329.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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 X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -6.73 X-Spam-Score: -6.73 X-Migadu-Queue-Id: 39621132C8 X-TUID: fVhg1yTZm830 --iOR3gTzMnY6teYBX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 27, 2023 at 12:38:26AM +0100, Tomas Volf wrote: > On 2023-11-25 11:22:46 -0500, Abdullah Imad wrote: > > Hello, > >=20 > >=20 > > I'm trying to package [helix](https://github.com/helix-editor/helix), a= text > > editor written in rust. I'm unsure how to write the actual package thou= gh. > > The layout is seemingly straight forward - I found a random rust package > > already in guixpkgs and just copied the config - but when it comes to > > `cargo-inputs` and `cargo-development-inputs`, I'm not sure what to do.= Do I > > have to define every single variable in `cargo.lock`? For bigger projec= ts > > this seems like an incredible amount of work. Why does the guix system > > require packages to be pulled from guix repos when nix just reads the > > `cargo.lock` and pulls it from crates.io or something? Is that not also > > deterministic, since that's the entire point of the `cargo.lock` file? = In > > the flake that helix provides : > > https://github.com/helix-editor/helix/blob/master/flake.nix , the indiv= idual > > dependencies are not defined. Am I missing something, or is this just h= ow > > its done? >=20 > I think people usually use the importer. For crates it would be somethin= g like: >=20 > guix import crate -r PACKAGE-NAME >=20 > That will take care of adding all dependencies not yet present in the Gui= x. The > generated definitions might need some tweaks though. I just checked and it doesn't look like you can use the importer for helix itself. Also the crates in the workspace, helix-core etc., are placeholders on crates-io, so you'll need to manually parse the Cargo.toml files in each of the crates in the project. crates listed in [dependencies] go in cargo-inputs and [dev-dependencies] go in cargo-development-inputs. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --iOR3gTzMnY6teYBX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmVkS6oACgkQQarn3Mo9 g1HsNw/8C/0XXe5b0zLF3vYvZI+OHhb+WFtGFo5ImqotVVrn1hmqk9wGtHeeedUd KsP5h7mv5jnZNXS0Vmc3cNPQYf1Tr0YkXCBY1LF99HjUcdZLb5FmLtFHUcChLV3A 7cr4VlPn+TDWHLgvKK3sNWkn0fMXtoXQrZkYzLQlapgfaOqmWySc9xRWfroaQB0n PRq+xZ60goU+IpCccUdtZkbGVhP5PDDRpekSJnL4HrMG33m/duBcj3FrOBUO21A9 Tc1JmQ02qfGzjQxXTGdeblJd3ZOaKMWhpZda8mTrp6JFbPwecBwCphuFYT5W7vmy eFY0z4QWt10eUZcUhphQF0OpQd4EcoyQvfozaRhN96WWDHS96PBQn+phZmovhaDr ncMY3h/JtBYquD6lD47QRJzrKpVe5X4lz5naQGlskL02TyVOg0w1iVsisuyA7GvP eq+571QLAXbMYq/mDn9sTmHKq3ObQcmLumda9gnAr8rrYV/t2/K8AklekmY2HlHE WMR2TlVDm2DfcjYayx++NH58tgd4c06BlklP4+x8Dr8VHqnYee9KXlxCt2hIlkxF c4gBQptK8V56WiGXpg4BbXp58CPZlYHgkR1tvTWAPlXhE8qNTeopPOKQrzGA7mDi Qm2l8C8Fa3WLumVXiv3TTbJ8NiGwN3ptwvWmz4y6HDNZ4ke78rU= =EXyq -----END PGP SIGNATURE----- --iOR3gTzMnY6teYBX--