Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Cloudef/nix-zig-stdenv
cross-compile nixpkgs with zig
https://github.com/Cloudef/nix-zig-stdenv
Last synced: 29 days ago
JSON representation
cross-compile nixpkgs with zig
- Host: GitHub
- URL: https://github.com/Cloudef/nix-zig-stdenv
- Owner: Cloudef
- Archived: true
- Created: 2022-10-30T22:26:28.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-21T04:28:18.000Z (11 months ago)
- Last Synced: 2024-08-03T23:16:39.343Z (4 months ago)
- Language: Nix
- Size: 886 KB
- Stars: 45
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-zig - Cloudef/nix-zig-stdenv - compiling toolchain. (Tools / Package and Version Manager)
README
# Zig based cross-compiling toolchain
## Major known issues:
- Zig seems to randomly fail with parallel builds with 'error: unable to build ... CRT file: BuildingLibCObjectFailed'
This seems like race condition with the cache?
https://github.com/ziglang/zig/issues/13160
https://github.com/ziglang/zig/issues/9711- Rust and zig fight for the ownership of libcompiler_rt
https://github.com/ziglang/zig/issues/5320## Why zig for cross-compiling?
Zig can cross-compile out of the box to many target without having to bootstrap the whole cross-compiler and various libcs
This means builds are very fast# TODO
- Generate meta.json with github actions
- Rank zig versions and targets depending how well they do in tests
- Provide `zigPkgs` set with packages maintained in this repo
- Packages that need major restructuring to compile
- Minimal versions of existing packages (we are mostly interested in libs only)
- Packages that do not exist yet in nixpkgs
- Namespaced for different platforms (c, rust, etc...)
- Generally zigPkgs is expected to compile and work while pkgs from nixpkg can be hit and missFor other stuff, run `things-to-do`