sveitser / nixpkgs-cross-overlay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nixpkgs-cross-overlay

nixos-unstable

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-unstable channels, they are tested on CI. It may also work on other channels but it is not guaranteed.

Usage

Features

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 and rustBuildHostDependencies hooks.
  • Binary cache with the precompiled packages.

License

MIT licensed.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion by you, shall be licensed as MIT, without any additional terms or conditions.

About

License:MIT License


Languages

Language:Nix 71.2%Language:CMake 20.9%Language:Shell 5.1%Language:Rust 2.7%Language:C++ 0.1%