mirror of
https://github.com/NixOS/nix.git
synced 2025-12-16 05:51:05 +01:00
Allow relative paths in flakerefs
Also allow "." as an installable to refer to the flake in the current directory. E.g. $ nix build . will build 'provides.defaultPackage' in the flake in the current directory.
This commit is contained in:
parent
507da65900
commit
c996e04aca
4 changed files with 15 additions and 8 deletions
|
|
@ -132,7 +132,7 @@ struct FlakeRef
|
|||
std::variant<IsFlakeId, IsGitHub, IsGit, IsPath> data;
|
||||
|
||||
// Parse a flake URI.
|
||||
FlakeRef(const std::string & uri);
|
||||
FlakeRef(const std::string & uri, bool allowRelative = false);
|
||||
|
||||
// Default constructor
|
||||
FlakeRef(const FlakeRef & flakeRef) : data(flakeRef.data) {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue