| 17 Oct 2022 |
aktaboot | Feature attributes are only allowed on the nightly release channel. Stable or
beta compilers will not comply.
Erroneous code example:
`
#![feature(lang_items)] // error: `#![feature]` may not be used on the
// stable release channel
`
If you need the feature, make sure to use a nightly release of the compiler
(but be warned that the feature may be removed or altered in the future).
(END)
| 10:31:20 |
aktaboot | any rustc-nightly builds ? 🤔 | 10:31:47 |
Linux Hackerman | not in nixpkgs | 10:31:53 |
Linux Hackerman | there are a couple of approaches to getting nightly builds, one of them is https://github.com/nix-community/fenix | 10:32:19 |
aktaboot | thanks, will look into it | 10:32:49 |
aktaboot | does that mean that you can't put a package in nixpkgs that can only be built with the nightly rustc ? | 10:33:26 |
Linux Hackerman | I think so | 10:34:01 |
aktaboot | yeah since hydra won't be able to build it ig | 10:34:21 |
aktaboot | thanks! | 10:34:30 |
aktaboot | 🦀 | 10:36:20 |
figsoda | In reply to @aktaboot:tchncs.de does that mean that you can't put a package in nixpkgs that can only be built with the nightly rustc ? kind of a hack but sometimes RUSTC_BOOTSTRAP=1 works | 16:00:57 |
| 19 Oct 2022 |
aktaboot | how would you link ld needed for a Rust build | 16:23:00 |
aktaboot | I'm using buildRustPackage | 16:24:23 |
Charles ⚡️ | what's the build error you're getting? | 16:29:16 |
aktaboot | during compilation I get fatal error: could not find ld | 16:31:02 |
Charles ⚡️ | for my rust projects, which ld says /nix/store/xxx-gcc-wrapper-11.3.0/bin/ld | 16:31:59 |
Charles ⚡️ | which i guess probably comes from pkgs.stdenv | 16:32:15 |
aktaboot | shouldn't that be included by default ? | 16:33:20 |
Charles ⚡️ | that's what i'm saying, yes | 16:33:29 |
Charles ⚡️ | so i am also confused | 16:33:42 |
aktaboot |  Download clipboard.png | 16:34:05 |
aktaboot | I might be doing something very wrong | 16:34:12 |
aktaboot | I followed fenix guidelines | 16:34:45 |
aktaboot | * I followed fenix's guidelines | 16:34:53 |
Charles ⚡️ | that looks basically correct to me | 16:35:10 |
Charles ⚡️ | try toolchain = fenix.packages.${system}.stable; | 16:35:33 |
Charles ⚡️ | i don't think that trailing .toolchain is supposed to be there | 16:35:48 |
Charles ⚡️ | but i don't know if that makes a difference | 16:35:53 |
Charles ⚡️ | i would expect stdenv to be provided by buildRustPackage | 16:36:03 |
aktaboot |  Download clipboard.png | 16:37:22 |