!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

710 Members
Rust162 Servers

Load older messages


SenderMessageTime
19 Oct 2022
@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
@aktaboot:tchncs.deaktaboot🤔16:37:23
@aktaboot:tchncs.deaktabootmaybe it's because i dont have fenix installed16:38:25
@aktaboot:tchncs.deaktabootbut i doubt it16:38:28
@charles:computer.surgeryCharles ⚡️https://or.computer.surgery/charles/nix-rust-quickstart/-/blob/243b1e28921eab818ae288274a4f58e6ce167899/flake.gen.nix this is what i've been using for buildRustPackage16:38:36
@charles:computer.surgeryCharles ⚡️i just recently switched to naersk because it's more ergonomic if you have git dependencies16:38:54
@charles:computer.surgeryCharles ⚡️
In reply to @aktaboot:tchncs.de
maybe it's because i dont have fenix installed
i don't think this is a question that makes any sense; you're just supposed to have it as a flake input
16:39:32
@aktaboot:tchncs.deaktabootyeah I mean this is not my system's flake16:39:52
@aktaboot:tchncs.deaktabootit's just this build's flake16:41:38
@aktaboot:tchncs.deaktabootwhich shouldn't make any difference16:42:06
@charles:computer.surgeryCharles ⚡️ Also unrelated, but instead of fetchfromgithub you can use it as a flake input and set flake = false 16:42:39
@charles:computer.surgeryCharles ⚡️ Then src = "${upstream}"; assuming that's what you named the input 16:43:24
@aktaboot:tchncs.deaktabootI'm very new to flaking, just trying to make things work :D16:44:06
@aktaboot:tchncs.deaktabootokay I see what you mean16:44:33

Show newer messages


Back to Room ListRoom Version: 6