help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rust Packaging without crates.io


From: (
Subject: Re: Rust Packaging without crates.io
Date: Wed, 24 Aug 2022 17:06:35 +0100

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 via email to

[Prev in Thread] Current Thread [Next in Thread]