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

Subdirectory improvements #2907

Merged
merged 8 commits into from Jun 3, 2019
Merged

Subdirectory improvements #2907

merged 8 commits into from Jun 3, 2019

Conversation

edolstra
Copy link
Member

You can now use dir and other parameters in path flakes (e.g. nix build /path/to/repo?dir=bla). Also, dir can be determined automatically (i.e. nix build /path/to/repo/bla).

Also, you can now use bare flakerefs as installables (e.g. nix build dwarffs), so you don't need a colon at the end anymore.

This PR also fixes a bug in reading lockfiles from subdirectories.

Useful for debugging.
So now

  $ nix build blender-bin

works and builds the default package from that flake. You don't need
to add a colon at the end anymore.
This means that in a flake in a subdirectory of a Git repo, you can
now do

  $ nix build

rather than the inconvenient

  $ nix build ../..?dir=foo/bar
@edolstra edolstra requested review from grahamc and CSVdB May 31, 2019 19:58
@edolstra edolstra merged commit 95bdfaa into flakes Jun 3, 2019
@edolstra edolstra deleted the subdir branch June 6, 2019 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants