Nix Package Manager has incredible cross-compilation support, but vanilla packages sometimes have some cross-compilation issues. This overlay contains some extensions and bugfixes to provide a better experience.
nixpkgs-cross-overlay targets nixos-24.05
channels, they are tested on CI. It
may also work on other channels but it is not guaranteed.
This overlay is in an early development stage, so there is a lack of
documentation, especially about useful extensions like rustCrossHook
. Anyway,
a contribution is very welcome.
- Works fine on the Intel and Apple Silicon macOS machines.
- Compilation fixes and workarounds for the some libraries and binaries.
- Static Musl targets, that can produce distro-independent binaries.
- Almost zero cross-compilation shell setup for Rust by the
rustCrossHook
andrustBuildHostDependencies
hooks. - Binary cache with the precompiled packages.
MIT licensed.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion by you, shall be licensed as MIT, without any additional terms or conditions.