all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Abdullah Imad <me@imad.nyc>
To: help-guix@gnu.org
Subject: Confusion regarding rust packages in guix
Date: Sat, 25 Nov 2023 11:22:46 -0500	[thread overview]
Message-ID: <f9be6529-5431-4e9f-8ac3-43335e35ddf8@imad.nyc> (raw)

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?


Thanks,

Abdullah Imad



             reply	other threads:[~2023-11-26 19:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-25 16:22 Abdullah Imad [this message]
2023-11-26 23:38 ` Confusion regarding rust packages in guix Tomas Volf
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f9be6529-5431-4e9f-8ac3-43335e35ddf8@imad.nyc \
    --to=me@imad.nyc \
    --cc=help-guix@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.