Skip to content

Some Zig applications like ncdu requires extra information like zig.meat.platforms and zig.hook  #59

@Ziqi-Yang

Description

@Ziqi-Yang

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;
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions