From: Tomas Volf <~@wolfsden.cz>
To: Abdullah Imad <me@imad.nyc>
Cc: help-guix@gnu.org
Subject: Re: Confusion regarding rust packages in guix
Date: Mon, 27 Nov 2023 00:38:26 +0100 [thread overview]
Message-ID: <ZWPW8n-fAr-Ngq0m@ws> (raw)
In-Reply-To: <f9be6529-5431-4e9f-8ac3-43335e35ddf8@imad.nyc>
[-- Attachment #1: Type: text/plain, Size: 1495 bytes --]
On 2023-11-25 11:22:46 -0500, Abdullah Imad wrote:
> Hello,
>
>
> 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 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. Do 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 individual
> 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.
>
>
> Thanks,
>
> Abdullah Imad
>
>
Have a nice day,
Tomas
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-11-26 23:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-25 16:22 Confusion regarding rust packages in guix Abdullah Imad
2023-11-26 23:38 ` Tomas Volf [this message]
2023-11-27 7:56 ` Efraim Flashner
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZWPW8n-fAr-Ngq0m@ws \
--to=~@wolfsden.cz \
--cc=help-guix@gnu.org \
--cc=me@imad.nyc \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).