rustshop / flakebox

Flakebox is to your Rust project dev environment, what NixOS is to your OS, or home-manager to your home directory.
96 stars 5 forks source link

feat: adding pkgs support for cross-compilation #161

Open SilentVoid13 opened 1 week ago

SilentVoid13 commented 1 week ago

closes #160.

This should not introduce any breaking changes, we can now pass a buildInputs and nativeBuildInputs lambda to craneMultiBuild that we get resolved in mkStdToolchains and ultimately passed to craneLib in mkFenixToolchain.

EDIT: I just realized my new commits were also forwarded to this PR, they basically add new targets (linux musl variants + windows64 with mingw).

dpc commented 6 days ago

We'll need tests in ./checks that make sure it works. But right now that craneArgs looks off to me.

SilentVoid13 commented 6 days ago

Got it, thanks for the review. I did not manage to get mergeArgs to work but I'm fairly new to writing nix