From: "Jonas Møller" <jonas@moller.systems>
To: "(" <paren@disroot.org>
Cc: guix-devel@gnu.org
Subject: Re: Why does Guix duplicate dependency versions from Cargo.toml?
Date: Thu, 24 Aug 2023 10:14:24 +0000 [thread overview]
Message-ID: <dEqqCV_S1uFt_1JXcjpNgB8MgCSGUs2QDWNxeH_CiJ4UPxkFK3NaI2dekbNR8VEtuHp_6ugb8LSSq3YebU6bAnHZCt6GGoiW3vDoimHd-hw=@moller.systems> (raw)
In-Reply-To: <87a5ughqb0.fsf@disroot.org>
Interesting, Guix already has git/url-fetch, what is keeping Guix from simply fetching a cargo project and then running `cargo build` in the fetched source directory?
If the problem is that the build daemon is sandboxed and doesn't have internet access, it is also feasible to have one stage of the build process download all the resources specified in Cargo.lock (and cache this in /gnu/store) and rewrite `version = "x.y.z"` to `path = "x/y/z"` before everything is passed to the build daemon.
I just don't see why this can't be ad-hoc.
------- Original Message -------
On Thursday, August 24th, 2023 at 09:05, ( <paren@disroot.org> wrote:
>
>
> Jonas Møller jonas@moller.systems writes:
>
> > Hi Guix! Why does cargo-build-system need #:cargo-inputs specified in the package definition? This seems like a
> > big mistake for a couple of reasons.
> >
> > 1 It is completely redundant, it should match what is in Cargo.toml. I know `guix import crate` exists to
> > automate this process, but I don't understand the rationale for duplicating this information.
>
>
> Because it'd be literally impossible to do otherwise. You'd have to
> contort Guix into some pretty weird shapes to change a package
> derivation based on what was downloaded as the source.
>
> -- (
next prev parent reply other threads:[~2023-08-24 10:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-21 19:23 Why does Guix duplicate dependency versions from Cargo.toml? Jonas Møller
2023-08-24 7:05 ` (
2023-08-24 10:14 ` Jonas Møller [this message]
2023-08-24 19:40 ` (
2023-08-25 9:13 ` Zhu Zihao
2023-08-25 14:56 ` (
2023-08-26 14:08 ` Andreas Enge
2023-08-27 11:18 ` Attila Lendvai
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='dEqqCV_S1uFt_1JXcjpNgB8MgCSGUs2QDWNxeH_CiJ4UPxkFK3NaI2dekbNR8VEtuHp_6ugb8LSSq3YebU6bAnHZCt6GGoiW3vDoimHd-hw=@moller.systems' \
--to=jonas@moller.systems \
--cc=guix-devel@gnu.org \
--cc=paren@disroot.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.