Cargo in Guix

  • Done
  • quality assurance status badge
Details
3 participants
  • Jan Ole Zabel
  • Julien Lepiller
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Jan Ole Zabel
Severity
normal
J
J
Jan Ole Zabel wrote on 26 Apr 2020 00:17
(address . bug-guix@gnu.org)
41c810f3-2694-3c59-738f-17b2c3567eb3@posteo.de
Hi,

I just installed the rust package on guix-system and realized I have no
idea of how to use `cargo` to build something. First, cargo is not in my
search path after installing `rust`, because there is no link in
`.guix-profile`. There is no dedicated package either. Second, the
cargo binary installed in `/gnu/store/` throws the following:

$ /gnu/store/*-rust-1.39.0-cargo/bin/cargo install ripgrep
error: failed to download from
Caused by:
[60] SSL peer certificate or SSH remote key not found (server
certificate verification failed. CAfile: none CRLFile: none)

A `curl https://crates.io` works normally, so it's not an issue with the
system certificates.

Am I doing something wrong? Is this even the right place to report or ask?
J
J
Julien Lepiller wrote on 26 Apr 2020 15:39
4D816AB7-3207-4375-9E93-5065ACAB152B@lepiller.eu
Le 25 avril 2020 18:17:16 GMT-04:00, Jan Ole Zabel <jan.zabel@posteo.de> a écrit :
Toggle quote (8 lines)
>Hi,
>
>I just installed the rust package on guix-system and realized I have no
>idea of how to use `cargo` to build something. First, cargo is not in
>my
>search path after installing `rust`, because there is no link in
>`.guix-profile`. There is no dedicated package either.

The rust package has multiple outputs. Its default output doesn't contain cargo, but it has a cargo output which you found in the store. You can install it with:

guix install rust:cargo

Toggle quote (15 lines)
>Second, the
>cargo binary installed in `/gnu/store/` throws the following:
>
> $ /gnu/store/*-rust-1.39.0-cargo/bin/cargo install ripgrep
> error: failed to download from
>`https://crates.io/api/ripgrep/12.0.1/download`
>
> Caused by:
> [60] SSL peer certificate or SSH remote key not found (server
>certificate verification failed. CAfile: none CRLFile: none)
>
>A `curl https://crates.io` works normally, so it's not an issue with
>the
>system certificates.

My guess is that curl comes from your foreign system? Guix packages don't read the global location. Have you performed these additional steps after installing guix?


Toggle quote (4 lines)
>
>Am I doing something wrong? Is this even the right place to report or
>ask?

guix-help would have been a better place for this one I think.

I hope this helped a bit :)

Hi,
M
M
Maxim Cournoyer wrote on 8 Aug 2021 06:20
(name . Julien Lepiller)(address . julien@lepiller.eu)
878s1c36u8.fsf@gmail.com
Hello,

Julien Lepiller <julien@lepiller.eu> writes:

Toggle quote (44 lines)
> Le 25 avril 2020 18:17:16 GMT-04:00, Jan Ole Zabel <jan.zabel@posteo.de> a écrit :
>>Hi,
>>
>>I just installed the rust package on guix-system and realized I have no
>>idea of how to use `cargo` to build something. First, cargo is not in
>>my
>>search path after installing `rust`, because there is no link in
>>`.guix-profile`. There is no dedicated package either.
>
> The rust package has multiple outputs. Its default output doesn't
> contain cargo, but it has a cargo output which you found in the
> store. You can install it with:
>
> guix install rust:cargo
>
>>Second, the
>>cargo binary installed in `/gnu/store/` throws the following:
>>
>> $ /gnu/store/*-rust-1.39.0-cargo/bin/cargo install ripgrep
>> error: failed to download from
>>`https://crates.io/api/ripgrep/12.0.1/download`
>>
>> Caused by:
>> [60] SSL peer certificate or SSH remote key not found (server
>>certificate verification failed. CAfile: none CRLFile: none)
>>
>>A `curl https://crates.io` works normally, so it's not an issue with
>>the
>>system certificates.
>
> My guess is that curl comes from your foreign system? Guix packages
> don't read the global location. Have you performed these additional
> steps after installing guix?
>
> http://guix.gnu.org/manual/en/html_node/X_002e509-Certificates.html#X_002e509-Certificates
>
>>
>>Am I doing something wrong? Is this even the right place to report or
>>ask?
>
> guix-help would have been a better place for this one I think.
>
> I hope this helped a bit :)

Thanks to Julien for the assistance.

Closing this forgotten issue.

Maxim
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 40858@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 40858
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch