zig-overlay icon indicating copy to clipboard operation
zig-overlay copied to clipboard

Add an overlay attribute?

Open mitchellh opened this issue 3 years ago • 1 comments

I know that this isn't currently an overlay, but it could be! Would you be open to adding an overlay attribute like:

overlay = final: prev: {
  # Or whatever name here...
  zigpkgs = flake.packages.${prev.system};
}

In most of my flakes using this one, I end up doing the following anyways:

      overlays = [
        (final: prev: {
          zigpkgs = inputs.zig.packages.${prev.system};
        })
      ];

Which isn't too annoying, but would be nicer to do this:

      overlays = [
        inputs.zig.overlay
      ];

(Later, I use zigpkgs.master.latest or whatever)

Is this useful? I'd be happy to make a PR, also would want to know what name you'd want it exported as.

mitchellh avatar Jan 12 '22 21:01 mitchellh

Hi! I wouldn't mind making this flake also work as an overlay, and if you don't mind writing it yourself (I know it's not much, and I wouldn't mind writing either) I'd gladly accept it as a PR.

Regarding the name for exporting; I personally don't really know what would be best so I'll leave it up to you in case you make the PR.

Thanks!

roarkanize avatar Jan 13 '22 16:01 roarkanize