Replies: 1 comment 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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
All reactions