diff options
author | Fabian Möller <fabianm88@gmail.com> | 2020-07-23 14:21:27 +0200 |
---|---|---|
committer | Fabian Möller <fabianm88@gmail.com> | 2020-07-23 14:21:27 +0200 |
commit | b9ead08ca8f3b8e693a4528d0c6f642dcee026fe (patch) | |
tree | 02cda18e63dc75faee7ba36ad7679beeb93ae66e /src | |
parent | d58ab591d4f1270383a379887e329f3eb84fbba6 (diff) |
Save changes made by "nix registry pin" to user registry
Diffstat (limited to 'src')
-rw-r--r-- | src/nix/registry.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/registry.cc b/src/nix/registry.cc index 16d7e511f..ebee4545c 100644 --- a/src/nix/registry.cc +++ b/src/nix/registry.cc @@ -111,6 +111,7 @@ struct CmdRegistryPin : virtual Args, EvalCommand fetchers::Attrs extraAttrs; if (ref.subdir != "") extraAttrs["dir"] = ref.subdir; userRegistry->add(ref.input, resolved, extraAttrs); + userRegistry->write(fetchers::getUserRegistryPath()); } }; |