Some Zig applications like `ncdu` requires extra information like `zig.meat.platforms` and `zig.hook`
Opened this issue · 0 comments
Ziqi-Yang commented
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;
};