> On 08/24/2022 11:08 MDT ( wrote:
>
> You could add a version constraint to it if you like; what's the version
> in the dependency's cargo.toml?
It's rev={commit}
-Jonathan
On Wed Aug 24, 2022 at 6:11 PM BST, Jonathan Scoresby wrote:
> It's rev={commit}
Try visiting that commit in the dep's repo and see what version it's at,
then use an appropriate semver spec instead of `*`.
-- (
On Wed Aug 24, 2022 at 6:05 PM BST, Jonathan Scoresby wrote:
> Also, it does not check the version. If the main package changed to depend on
> a newer version, the suggested more of creating a package definition would
> allow one to build the new package using the outdated dependency.
You could
I mean that the referenced package could be anything. I feel like guix should
somehow verify that the referenced package was built from the source specified
in the cargo.toml.
Also, it does not check the version. If the main package changed to depend on a
newer version, the suggested more of cr
Not entirely sure what you mean by "checking if it's correct", but
the entire cargo-build-system is something of a hack. That will
change with antioxidant-build-system, hopefully coming soon to a
core-updates near you™. :)
-- (
Yes. That is what I was trying to expalain. I will try that out, though I must
say that this solution feels a little bit hacky. Shouldn't guix be checking
somehow that the referenced package is correct?
-Jonathan
Ah, I think this is because Cargo's vendor directory feature substitutes
a directory specifically for the crates.io registry. Since only a Git
dependency is specified, it doesn't even bother looking in the directory.
Just patch the line in the crates.io file to say something like:
pkg = "*"
> On 08/24/2022 10:06 MDT ( wrote:
>
>
> 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" ve
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
I am trying to build a package definition for a rust project that is not on
crates.io (package A). It has a dependency for another rust project that is
also not hosted on crates.io (package B). How do I get guix to reference the
guix package B instead of trying to fetch it from the source reposi
10 matches
Mail list logo