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

Shorter syntax for referencing flake outputs #2819

Closed
edolstra opened this issue May 16, 2019 · 1 comment
Closed

Shorter syntax for referencing flake outputs #2819

edolstra opened this issue May 16, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@edolstra
Copy link
Member

edolstra commented May 16, 2019

Currently you have to write e.g. inputs.nixpkgs.outputs.packages. We could drop the .provides to make things a bit more convenient.

@grahamc grahamc transferred this issue from another repository May 16, 2019
@grahamc grahamc added the flakes label May 16, 2019
@grahamc grahamc added this to the flakes-v2 milestone May 16, 2019
@edolstra edolstra self-assigned this May 27, 2019
edolstra added a commit that referenced this issue Jun 4, 2019
@edolstra edolstra changed the title Shorter syntax for referencing flake members Shorter syntax for referencing flake outputs Jun 4, 2019
@edolstra
Copy link
Member Author

edolstra commented Jun 5, 2019

Implemented in 1b05792, though it's a bit questionable whether it's a good idea, since it makes flakes less lazy then they could be (it forces evaluation of the outputs function even if the caller is only interested in the flake source tree or metadata).

@edolstra edolstra closed this as completed Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants