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 6AG3JxzXY2XDdgEAG6o9tA:P1 (envelope-from ) for ; Mon, 27 Nov 2023 00:39: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 6AG3JxzXY2XDdgEAG6o9tA (envelope-from ) for ; Mon, 27 Nov 2023 00:39:08 +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 96A6741FFA for ; Mon, 27 Nov 2023 00:39:08 +0100 (CET) Authentication-Results: aspmx1.migadu.com; none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7Ohx-00058f-0i; Sun, 26 Nov 2023 18:38:37 -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 1r7Ohv-00058F-9o for help-guix@gnu.org; Sun, 26 Nov 2023 18:38:35 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7Ohs-0001hY-4m for help-guix@gnu.org; Sun, 26 Nov 2023 18:38:35 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 95D5425E5C1; Sun, 26 Nov 2023 23:38:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1701041908; bh=ZWcLhebr9Hq5Jpa4ljABPbMhajRBfUd/ouTmI4BYP4s=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=unCYynG+vJWCR1gIMTd9J0YRsepv1I2rjv/VjfcKGyIN/TWKtX4V+XilJ8VKQltPS wwf73qYlg3SU43po6/g6vccg/l6j7SG2IF1yvyeGMEief60kKz7S0yWgJ7Th3MwD3I h5wWA8NKsLFxsY5/r8CQHEhrpVEnSSgeK+nOxOBz7XdYrtpXEOenzpIYMnU+O0RT+s 8URy/iNOB9FlQGHDJk1nAcCc7PNbNgHw8sq2JSFLgXeV6ukE5Kc8pFFSDqvVuywlGW bRlCQNzJthJ+gU5xCcjhEJmuArzTGWUNyPk/YbQtR2BV+8O5jYC7UWOg7QYN9195W5 9MYiZYWYc5f03gJKWdQEp5c3hhbJjB+8EQXBBq+MYCFWX/SVgvItTuv8vQ56piAtPr /kZzE4d1RmtBn2s4Ud86Ks+MZ8KiPDnmpYR/pI7VQRP1ViE9ybw/QsrENwBqjXq/uU ya+qTHoj6Tj94TXaHYI3v31IsaYKPno0MbX2p0UO0rlkEbtEcR2XPMyu130hGZGbiU q8JJDp1h9RwEKST3zdvMzwjmfH30LLlQu5aBeWREhoAgFiMOAmx6xAVCyVivY/aVJV inxdc/69XZdoTHcQpolao9NgX30GUDz76UB4FYMtc/QFDcRPw7/QWrcMdYvQ6JuYGz ntfrpm7nys2+eXbLESRckPSI= Received: from localhost (unknown [81.17.16.68]) by wolfsden.cz (Postfix) with ESMTPSA id 83A5F25F102; Sun, 26 Nov 2023 23:38:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1701041907; bh=ZWcLhebr9Hq5Jpa4ljABPbMhajRBfUd/ouTmI4BYP4s=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=BMnkSZ89m++fMgFU+hBR5Rg1k2J9mIrXBAt76B7fXC7oZ1p+Nokjdn0b/XX33Fokz sXs1rxDNL8BZYeU0JFv76OBR76vK17BnEckWANs0+QfpmgxsRw890/BuzjFsjj/Xt8 f3A7nfqCgLu3K2cod8MvgCMZR05NIUYXVKIi/DSfEOTUyG85KHGUwBhuVih/zuSMvJ E+WIBopnSriGpXVl8uCRuGnuukQqQsNCFT85AYegdH1JhkMXDOK/ZH8LaM8nwha8hB n6OAWzCPWCNZEdu2WrlmrxaZBp4Aj5nSExMLAOzJZq1jzUGGYf6OnMCXDMNSEmC71d GIjyVRGwYnUb44jzPmPHNDIWAXbg24bUwmnMjMX6+qQy37g8FfJMY50Fj+77a6zyYi gmQws5vSCmdh08gE3tM/nrgw69TL3KtoVA2toKP15Vebrg39GQ8zxLwt62k7LYirWt cS3vqZel7HQcqj8eO3Z9NUM6Ibr3i2C9uaF2mbK+YWlCqSuszI07JUCEMnQh8tLxIL BcD59bfZb0/mrNXY/slyuS1ZgkFcWWeZTf5guMJPN2+a7J0XijidfLLOG9LmLSwu9G hnQzVnxxs91UW8e5JRavOpxbLfGJ4tpuTLn+6M+xsmoShyMgkA+5s9Kp3R6AMyojqX 3IAurWB+qGhs3VvZ9TVZCyF8= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id e0d9ffbf; Sun, 26 Nov 2023 23:38:26 +0000 (UTC) Date: Mon, 27 Nov 2023 00:38:26 +0100 From: Tomas Volf <~@wolfsden.cz> To: Abdullah Imad Cc: 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-sha512; protocol="application/pgp-signature"; boundary="HJSE6fW420Smh9D+" Content-Disposition: inline In-Reply-To: Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 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: -4.00 X-Spam-Score: -4.00 X-Migadu-Queue-Id: 96A6741FFA X-TUID: 6X4GijpBLlJC --HJSE6fW420Smh9D+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 t= ext > editor written in rust. I'm unsure how to write the actual package though. > 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. D= o I > have to define every single variable in `cargo.lock`? For bigger projects > 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 individ= ual > dependencies are not defined. Am I missing something, or is this just how > its done? I think people usually use the importer. For crates it would be something = like: guix import crate -r PACKAGE-NAME That will take care of adding all dependencies not yet present in the Guix.= The generated definitions might need some tweaks though. >=20 >=20 > Thanks, >=20 > Abdullah Imad >=20 > Have a nice day, Tomas --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --HJSE6fW420Smh9D+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmVj1vIACgkQL7/ufbZ/ wakBYg/+PYbJ0bVDJx6tOMK1+iKovZ0/+nBZrEb8N9wNyVQiHA/zSmZEnyku/d9m 6Zx/Md76bOGs3eqyZrX6bLZs7qfaav/L3Ey30pCbPYajjtjFfjE37GPRrnbAYgdT +hxzH5vOKvtu29USkuvQGbD/GbiXS6wHhx7D5+xogqQfpSeJdFJWreUOofirNhPc 741l67YpGsIglTUi556W1pJ1J0nmsEa1czT3Xq09eU3nlXvEdjuJaYHqwiA/TSUc B6DY9geK3V9l7XmC4JZ3NK3lFWDpwMtmpyN95wb28KXlpMi6/8OXFinGScfXRyuN ze1WsVWx3sniutK8oKpuA4qXYC+jVMW+HQeQKkzZUECHgYU91b6wu6Vf5T03uPUO FdUfjf9rbWu94/9qAxXqZ0piUfh3zdjr8M0MXP4Z9FgWC++19X7zSG90Psg5AC7l f0JdWdEsznAQdOdRaI2q8sd3lzwFAGR4CM1t8n4/GhciIS5BBeNBqG23F1PsqejX iGJNz3z9NFqsusv/yYsZkBU9ieqDNuRw4p5BFxJ6z8mT35Pn/m34e66SpbYkFVS3 nexVr9UU3VT5tv4NlU7ELm86IpZJ/LbWh8FExPtlB0FkJeP87eR3nrgb1WNphbfp RtV8xZJ+pMOLMcrSIUDETlvQW/tZvYq7Vu6qa6IcoG5eW2s2yes= =8qlB -----END PGP SIGNATURE----- --HJSE6fW420Smh9D+--