unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#40858: Cargo in Guix
@ 2020-04-25 22:17 Jan Ole Zabel
  2020-04-26 13:39 ` Julien Lepiller
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Ole Zabel @ 2020-04-25 22:17 UTC (permalink / raw)
  To: 40858

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
`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.

Am I doing something wrong? Is this even the right place to report or ask?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#40858: Cargo in Guix
  2020-04-25 22:17 bug#40858: Cargo in Guix Jan Ole Zabel
@ 2020-04-26 13:39 ` Julien Lepiller
  2021-08-08  4:20   ` Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Lepiller @ 2020-04-26 13:39 UTC (permalink / raw)
  To: Jan Ole Zabel, 40858

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 :)

Hi,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#40858: Cargo in Guix
  2020-04-26 13:39 ` Julien Lepiller
@ 2021-08-08  4:20   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2021-08-08  4:20 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: Jan Ole Zabel, 40858-done

Hello,

Julien Lepiller <julien@lepiller.eu> writes:

> 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-08  4:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-25 22:17 bug#40858: Cargo in Guix Jan Ole Zabel
2020-04-26 13:39 ` Julien Lepiller
2021-08-08  4:20   ` Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).