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

default*: do not namespace? #19

Open
blaggacao opened this issue Jan 5, 2021 · 1 comment
Open

default*: do not namespace? #19

blaggacao opened this issue Jan 5, 2021 · 1 comment

Comments

@blaggacao
Copy link
Contributor

blaggacao commented Jan 5, 2021

Wouldn't it make the public api of a simple flake repo cleaner if default*, eg defaultPackage would not be re-exposed in packages?

defaultPackage = packages.defaultPackage;

So that we would do:

# ./overlay.nix
final: prev:
{
  simple-flake = {
    hello = prev.hello;
  };
  defaultPackage = prev.hello;
  devShell = {};
}
@blaggacao
Copy link
Contributor Author

blaggacao commented Jan 5, 2021

Ah that would break the name spacing of the genuine overlay import. But an alternative could be to filter those out when exporting packages (or alternatively when exporting overlays — so their special status gains a visual clue in the ./overlay.nix file)?

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

No branches or pull requests

1 participant