| 19 Oct 2022 |
aktaboot | whole reason I was using fenix is to get access to rustc nightly builds, which I ain't sure how to do | 17:38:50 |
aktaboot | do 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 | 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 | so with oxalica I don't need fenix to use the nightly binary, right ? | 17:47:01 |
a-kenji | Yes, they would be independent. | 17:47:14 |
aktaboot | oh you mean I have to do the same/equivalent overlay but with fenix | 17:47:38 |
a-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 | I don't know I asked about how to use the nightly toolchain, and I got suggested to use fenix | 17:48:20 |
aktaboot | so I blindly followed :D | 17:48:30 |
a-kenji | Maybe it's just not in the documentation then :D. | 17:49:00 |
Charles ⚡️ | Uh what, Fenix has nightly | 17:53:30 |
a-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 | yeah | 17:53:45 |
aktaboot | I'm figuring out | 17:53:51 |
Charles ⚡️ | It just calls it "latest", "complete", and "minimal" | 17:53:55 |
aktaboot | It is in the docs | 17:53:58 |
aktaboot |  Download clipboard.png | 17:54:39 |
Charles ⚡️ | That's for manually selecting a specific version of nightly | 17:55:14 |
Charles ⚡️ | fenix.packages.${system}.latest is nightly | 17:56:10 |
a-kenji | Oh, my bad then I was thrown off by the ""latest", "complete" and "minimal" attribute.
| 17:56:20 |
Charles ⚡️ | So is .complete and .minimal | 17:56:34 |
aktaboot | how would I use toolchainOf though ? | 17:57:21 |
aktaboot | toolchain = toolchainOf {...} ? | 17:58:32 |
Charles ⚡️ | https://gitlab.com/CobaltCause/conduit/-/blob/add-nix-flake/flake.nix#L31 | 17:58:32 |
a-kenji | rust = toolchainOf { chanel = "nightly"; date = "2021-08-29"; sha256=lib.fakeSha256;} could be my guess. | 17:58:44 |
aktaboot | oh okay thanks | 17:58:53 |
aktaboot | I keep getting attribyte 'meta' missing for some reason | 18:02:18 |
Charles ⚡️ | can you paste your flake as text | 18:03:18 |
aktaboot | oh I have to append .toolchain mb | 18:03:25 |
Charles ⚡️ | ... you shouldn't have to do that | 18:03:34 |