Closed 573 closed 8 months ago
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 devenv.yaml
:
stdenv: pkgs.swift.stdenv
Would that work for your use case?
my use case would be stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.stdenv;
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 https://github.com/cachix/devenv/pull/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