!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

707 Members
Rust159 Servers

Load older messages


SenderMessageTime
17 Oct 2022
@aktaboot:tchncs.deaktaboot
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:tchncs.deaktabootany rustc-nightly builds ? 🤔10:31:47
@linus:schreibt.jetztLinux Hackermannot in nixpkgs10:31:53
@linus:schreibt.jetztLinux Hackermanthere are a couple of approaches to getting nightly builds, one of them is https://github.com/nix-community/fenix10:32:19
@aktaboot:tchncs.deaktabootthanks, will look into it10:32:49
@aktaboot:tchncs.deaktabootdoes that mean that you can't put a package in nixpkgs that can only be built with the nightly rustc ?10:33:26
@linus:schreibt.jetztLinux HackermanI think so10:34:01
@aktaboot:tchncs.deaktabootyeah since hydra won't be able to build it ig10:34:21
@aktaboot:tchncs.deaktabootthanks!10:34:30
@aktaboot:tchncs.deaktaboot🦀10:36:20
@figsoda:matrix.orgfigsoda
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:tchncs.deaktaboot how would you link ld needed for a Rust build 16:23:00
@aktaboot:tchncs.deaktaboot I'm using buildRustPackage 16:24:23
@charles:computer.surgeryCharles ⚡️what's the build error you're getting?16:29:16
@aktaboot:tchncs.deaktaboot during compilation I get fatal error: could not find ld 16:31:02
@charles:computer.surgeryCharles ⚡️ for my rust projects, which ld says /nix/store/xxx-gcc-wrapper-11.3.0/bin/ld 16:31:59
@charles:computer.surgeryCharles ⚡️ which i guess probably comes from pkgs.stdenv 16:32:15
@aktaboot:tchncs.deaktabootshouldn't that be included by default ?16:33:20
@charles:computer.surgeryCharles ⚡️that's what i'm saying, yes16:33:29
@charles:computer.surgeryCharles ⚡️so i am also confused16:33:42
@aktaboot:tchncs.deaktabootclipboard.png
Download clipboard.png
16:34:05
@aktaboot:tchncs.deaktaboot I might be doing something very wrong 16:34:12
@aktaboot:tchncs.deaktaboot I followed fenix guidelines 16:34:45
@aktaboot:tchncs.deaktaboot * I followed fenix's guidelines 16:34:53
@charles:computer.surgeryCharles ⚡️that looks basically correct to me16:35:10
@charles:computer.surgeryCharles ⚡️ try toolchain = fenix.packages.${system}.stable; 16:35:33
@charles:computer.surgeryCharles ⚡️ i don't think that trailing .toolchain is supposed to be there 16:35:48
@charles:computer.surgeryCharles ⚡️but i don't know if that makes a difference16:35:53
@charles:computer.surgeryCharles ⚡️i would expect stdenv to be provided by buildRustPackage16:36:03
@aktaboot:tchncs.deaktabootclipboard.png
Download clipboard.png
16:37:22

Show newer messages


Back to Room ListRoom Version: 6