-
I see there is an example for cross compiling for wasm: https://github.com/yusdacra/nix-cargo-integration/tree/master/examples/cross-compile-wasm I am wondering if there is a simple way to make a flake with nci export multiple packages for the same crate but compiled for different targets. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There is no API for this yet, but here is a draft API I had in mind: {
nci.crates."your-crate".targets."wasm32-unknown-unknown" = {
# optionally choose which profiles to generate packages for this target
profiles = ["dev" "release"];
# extra features to enable for this target specifically
features = ["some-target-specific-feature"];
# extra derivation config specific to this target
drvConfig = {};
depsDrvConfig = {};
};
} |
Beta Was this translation helpful? Give feedback.
-
there are now plenty of examples for cross compilation so this should not be an issue anymore |
Beta Was this translation helpful? Give feedback.
there are now plenty of examples for cross compilation so this should not be an issue anymore