aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorFabian Möller <fabianm88@gmail.com>2020-07-23 14:21:27 +0200
committerFabian Möller <fabianm88@gmail.com>2020-07-23 14:21:27 +0200
commitb9ead08ca8f3b8e693a4528d0c6f642dcee026fe (patch)
tree02cda18e63dc75faee7ba36ad7679beeb93ae66e /src/nix
parentd58ab591d4f1270383a379887e329f3eb84fbba6 (diff)
Save changes made by "nix registry pin" to user registry
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/registry.cc1
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());
}
};