mirror of
https://github.com/NixOS/nix.git
synced 2025-12-06 00:51:00 +01:00
Add --inputs-from to use flake inputs as registry entries
This allows you to refer to an input from another flake. For example, $ nix run --inputs-from /path/to/hydra nixpkgs#hello runs 'hello' from the 'nixpkgs' inputs of the 'hydra' flake. Fixes #3769.
This commit is contained in:
parent
7d554f295c
commit
d746503e5c
2 changed files with 27 additions and 0 deletions
|
|
@ -204,6 +204,8 @@ std::pair<Input, Attrs> lookupInRegistries(
|
|||
if (!input.isDirect())
|
||||
throw Error("cannot find flake '%s' in the flake registries", input.to_string());
|
||||
|
||||
debug("looked up '%s' -> '%s'", _input.to_string(), input.to_string());
|
||||
|
||||
return {input, extraAttrs};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue