| 19 Oct 2022 |
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 |
aktaboot | 🤔 | 16:37:23 |
aktaboot | maybe it's because i dont have fenix installed | 16:38:25 |
aktaboot | but i doubt it | 16:38:28 |
Charles ⚡️ | https://or.computer.surgery/charles/nix-rust-quickstart/-/blob/243b1e28921eab818ae288274a4f58e6ce167899/flake.gen.nix this is what i've been using for buildRustPackage | 16:38:36 |
Charles ⚡️ | i just recently switched to naersk because it's more ergonomic if you have git dependencies | 16:38:54 |
Charles ⚡️ | 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 | yeah I mean this is not my system's flake | 16:39:52 |
aktaboot | it's just this build's flake | 16:41:38 |
aktaboot | which shouldn't make any difference | 16:42:06 |
Charles ⚡️ | Also unrelated, but instead of fetchfromgithub you can use it as a flake input and set flake = false | 16:42:39 |
Charles ⚡️ | Then src = "${upstream}"; assuming that's what you named the input | 16:43:24 |
aktaboot | I'm very new to flaking, just trying to make things work :D | 16:44:06 |
aktaboot | okay I see what you mean | 16:44:33 |