aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/registry.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-01 20:23:39 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-07-01 20:25:13 +0200
commitd746503e5c6fafd0fb6b2a4e6527c12cfc626637 (patch)
treee50b8a4f191467be444ab035817e14d39bc730b0 /src/libfetchers/registry.cc
parent7d554f295ca0a8947042f367adb4f198730696be (diff)
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.
Diffstat (limited to 'src/libfetchers/registry.cc')
-rw-r--r--src/libfetchers/registry.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libfetchers/registry.cc b/src/libfetchers/registry.cc
index 914a0e1e8..d4134ce29 100644
--- a/src/libfetchers/registry.cc
+++ b/src/libfetchers/registry.cc
@@ -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};
}