mitchellh / mitchellh/zig-overlay
Some Zig applications like `ncdu` requires extra information like `zig.meat.platforms` and `zig.hook`
Open
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 548
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
ncdu in nixpkgs
zig in nixpkgs
I need to do this to make my configuration work:
zig = final: prev: let
# ncdu requres zig.meta and zig.hook
meta = prev.zig.meta;
# though zig version of zig.hook still refers to the original zig.
passthru = prev.lib.getAttrs ["hook"] prev.zig.passthru;
in rec {
zig = inputs.zig-overlay.packages.${final.system}.master.overrideAttrs (f: p: {
passthru = passthru;
meta = meta // inputs.zig-overlay.packages.${final.system}.master.meta;
});
zls = inputs.zls.packages.${final.system}.default;
};
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the overlay package definition and the linked nixpkgs expressions for ncdu and Zig. Reproduce the configuration shown, then check how the overlay's Zig package exposes meta and passthru. Done means applications such as ncdu can use the overlay package without manually copying zig.meta and zig.hook.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- zig
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100