aboutsummaryrefslogtreecommitdiff
path: root/src/nix/flake.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-20 23:44:06 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-20 23:44:06 +0100
commit73c98405695837dd93448ed38c0eeb0b56060dfc (patch)
treed70046e4bfe08269282cfa5257fe62ab53386ea5 /src/nix/flake.cc
parentd068f9ffff3d2a98e6dde0834a250e4930d44778 (diff)
Restore subdir -> dir
Got this mixed up somewhere.
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r--src/nix/flake.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index 42f5b2ce0..0887fb402 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -507,7 +507,7 @@ struct CmdFlakeAdd : MixEvalArgs, Command
auto fromRef = parseFlakeRef(fromUrl);
auto toRef = parseFlakeRef(toUrl);
fetchers::Input::Attrs extraAttrs;
- if (toRef.subdir != "") extraAttrs["subdir"] = toRef.subdir;
+ if (toRef.subdir != "") extraAttrs["dir"] = toRef.subdir;
auto userRegistry = fetchers::getUserRegistry();
userRegistry->remove(fromRef.input);
userRegistry->add(fromRef.input, toRef.input, extraAttrs);
@@ -558,7 +558,7 @@ struct CmdFlakePin : virtual Args, EvalCommand
userRegistry->remove(ref.input);
auto [tree, resolved] = ref.resolve(store).input->fetchTree(store);
fetchers::Input::Attrs extraAttrs;
- if (ref.subdir != "") extraAttrs["subdir"] = ref.subdir;
+ if (ref.subdir != "") extraAttrs["dir"] = ref.subdir;
userRegistry->add(ref.input, resolved, extraAttrs);
}
};