unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "(" <paren@disroot.org>
To: "Jonathan Scoresby" <me@jonscoresby.com>, <help-guix@gnu.org>
Subject: Re: Rust Packaging without crates.io
Date: Wed, 24 Aug 2022 17:06:35 +0100	[thread overview]
Message-ID: <CMEDZ3HYHE3M.2Y1KKEJU3OQ7S@guix-aspire> (raw)
In-Reply-To: <c030d1a1-f762-487e-bb3e-508b9a7510a5@jonscoresby.com>

Hi Jonathon,

You can just write a normal package for a crate on Git, replacing the source with
something like:

  (origin
    (method git-fetch)
    (uri (git-reference
          (url "...")
          (commit (string-append "v" version))))
    (file-name (git-file-name name version))
    (sha256
     (base32
      "...")))

You can use a Rust package built like this in the same way as a normal crates.io
crate. Just add it to cargo-inputs or cargo-development-inputs as appropriate :)

    -- (


  reply	other threads:[~2022-08-24 16:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-24  1:38 Rust Packaging without crates.io Jonathan Scoresby
2022-08-24 16:06 ` ( [this message]
2022-08-24 16:23   ` Jonathan Scoresby
2022-08-24 16:29     ` (
2022-08-24 16:52       ` Jonathan Scoresby
2022-08-24 16:56         ` (
2022-08-24 17:05           ` Jonathan Scoresby
2022-08-24 17:08             ` (
2022-08-24 17:11               ` Jonathan Scoresby
2022-08-24 17:12                 ` (

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=CMEDZ3HYHE3M.2Y1KKEJU3OQ7S@guix-aspire \
    --to=paren@disroot.org \
    --cc=help-guix@gnu.org \
    --cc=me@jonscoresby.com \
    /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).