-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request:] Overriding the stdenv not yet possible #567
Comments
Related: #530 |
We're getting closer to fixing this, I'm not sure if overriding makes sense for the whole devenv but rather than parts of it? |
For Rust see #900 Otherwise I'd suggest we add an option to stdenv: pkgs.swift.stdenv Would that work for your use case? |
#900 looks like what is missing, the devenv.yaml option could be feasible from flakes as well then further up the road, so yeah, this would be a nice addition. |
my use case would be rustVersion = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain;
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.stdenv;
rustPlatform = (pkgs.makeRustPlatform {
cargo = rustVersion;
rustc = rustVersion;
inherit stdenv;
}); |
Can you try #1092 and tell me if that works for you as expected? |
Tried and worked. Thanks all for the work ! |
Describe the bug
Currently it is not easily possible to override the stdenv, i. e. to compile to certain targets in rust / cargo.
To reproduce
See sscce for this issue.
Version
The text was updated successfully, but these errors were encountered: