Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy overlay publishing #82

Merged
merged 1 commit into from
Dec 27, 2022
Merged

Easy overlay publishing #82

merged 1 commit into from
Dec 27, 2022

Conversation

roberth
Copy link
Member

@roberth roberth commented Dec 1, 2022

The goal here is to make a half-decent overlay easy to define, by overloading pkgs in perSystem.
Multiple kinds of overlays exist in flakes. This may not be the definitive way to define them, so it's not part of the core modules.

  • documentation

Example:

# ...
{
      imports = [
        inputs.flake-parts.flakeModules.easyOverlay
      ];
      perSystem = { config, pkgs, final, ... }: {
        overlayAttrs = { inherit (config.packages) my-package; };
        # ...

@roberth roberth changed the title Easy overlay Easy overlay publishing Dec 1, 2022
@srid
Copy link
Contributor

srid commented Dec 1, 2022

Tangential thought: could this sort of API be useful for haskell-flake in some way? cf. srid/haskell-flake#12

@roberth
Copy link
Member Author

roberth commented Dec 1, 2022

Tangential thought: could this sort of API be useful for haskell-flake in some way? cf. srid/haskell-flake#12

Responded there. I think a module would be easier to understand, and more capable.

In general I think we should avoid overlays where we can use modules instead. Combining the two concepts is tricky.

@roberth roberth merged commit 19e0f88 into main Dec 27, 2022
@roberth roberth deleted the easyOverlay branch December 27, 2022 14:52
@roberth roberth mentioned this pull request Dec 27, 2022
@shlevy
Copy link
Contributor

shlevy commented Jan 11, 2023

This is really cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants