crane icon indicating copy to clipboard operation
crane copied to clipboard

Add cross-compilation environment variables (mkCrossToolchainEnv) to devshell by default

Open axelkar opened this issue 4 months ago • 1 comments

Is your feature request related to a problem? Please describe. I'm trying to build a Rust project manually with cargo b, but it requires the MinGW pthreads fix, which is provided by mkCrossToolchainEnv.

Describe the solution you'd like Add them by default, like in mkCargoDerivation.

Describe alternatives you've considered Manually use mkCrossToolchainEnv and take the wanted environment variables? I can't figure out a way to get the configureCargoCommonVars hook to run in devshell

axelkar avatar Aug 20 '25 10:08 axelkar

I'd be interested in having this, to somehow streamline doing cargo run or cargo test for Windows targets via wine automatically from the devShell, or something like that. Haven't put much thought into that but I think it might be possible.

DavSanchez avatar Oct 23 '25 11:10 DavSanchez