!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

711 Members
Rust162 Servers

Load older messages


SenderMessageTime
19 Oct 2022
@aktaboot:tchncs.deaktabootwhole reason I was using fenix is to get access to rustc nightly builds, which I ain't sure how to do17:38:50
@aktaboot:tchncs.deaktabootdo I build rustc from source as a flake input or somthing ? It has to be more cursed than that, no ?17:40:00
@a-kenji:matrix.orga-kenji
In reply to @aktaboot:tchncs.de
do I build rustc from source as a flake input or somthing ? It has to be more cursed than that, no ?
I haven't used fenix in forever, but I think you would specify it once you fetched the overlay, either through the overlay or through the packages. For example in the oxalica/rust-overlay you would do something like this: (pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default)) ]}
17:44:24
@aktaboot:tchncs.deaktabootso with oxalica I don't need fenix to use the nightly binary, right ?17:47:01
@a-kenji:matrix.orga-kenji Yes, they would be independent. 17:47:14
@aktaboot:tchncs.deaktabootoh you mean I have to do the same/equivalent overlay but with fenix17:47:38
@a-kenji:matrix.orga-kenji It also seems that fenix either doesn't have nightly toolchains, or forgot to add it to the documentation: https://github.com/nix-community/fenix#usage 17:47:41
@aktaboot:tchncs.deaktabootI don't know I asked about how to use the nightly toolchain, and I got suggested to use fenix17:48:20
@aktaboot:tchncs.deaktabootso I blindly followed :D17:48:30
@a-kenji:matrix.orga-kenjiMaybe it's just not in the documentation then :D.17:49:00
@charles:computer.surgeryCharles ⚡️Uh what, Fenix has nightly17:53:30
@a-kenji:matrix.orga-kenji This is how I usually use the oxalica overlay: overlays = [ (import rust-overlay) ];, then you can use the snippet I copied earlier directly. 17:49:52
@aktaboot:tchncs.deaktabootyeah17:53:45
@aktaboot:tchncs.deaktabootI'm figuring out17:53:51
@charles:computer.surgeryCharles ⚡️It just calls it "latest", "complete", and "minimal"17:53:55
@aktaboot:tchncs.deaktaboot It is in the docs 17:53:58
@aktaboot:tchncs.deaktabootclipboard.png
Download clipboard.png
17:54:39
@charles:computer.surgeryCharles ⚡️That's for manually selecting a specific version of nightly17:55:14
@charles:computer.surgeryCharles ⚡️ fenix.packages.${system}.latest is nightly 17:56:10
@a-kenji:matrix.orga-kenjiOh, my bad then I was thrown off by the ""latest", "complete" and "minimal" attribute. 17:56:20
@charles:computer.surgeryCharles ⚡️ So is .complete and .minimal 17:56:34
@aktaboot:tchncs.deaktaboot how would I use toolchainOf though ? 17:57:21
@aktaboot:tchncs.deaktaboot toolchain = toolchainOf {...} ? 17:58:32
@charles:computer.surgeryCharles ⚡️https://gitlab.com/CobaltCause/conduit/-/blob/add-nix-flake/flake.nix#L3117:58:32
@a-kenji:matrix.orga-kenji rust = toolchainOf { chanel = "nightly"; date = "2021-08-29"; sha256=lib.fakeSha256;} could be my guess. 17:58:44
@aktaboot:tchncs.deaktabootoh okay thanks17:58:53
@aktaboot:tchncs.deaktaboot I keep getting attribyte 'meta' missing for some reason 18:02:18
@charles:computer.surgeryCharles ⚡️can you paste your flake as text18:03:18
@aktaboot:tchncs.deaktaboot oh I have to append .toolchain mb 18:03:25
@charles:computer.surgeryCharles ⚡️... you shouldn't have to do that18:03:34

Show newer messages


Back to Room ListRoom Version: 6