aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-23 16:13:05 +0200
committerGitHub <noreply@github.com>2020-07-23 16:13:05 +0200
commit4bfba1305ed004c7b23b4e288efa707807cf2ac3 (patch)
tree02cda18e63dc75faee7ba36ad7679beeb93ae66e
parentd58ab591d4f1270383a379887e329f3eb84fbba6 (diff)
parentb9ead08ca8f3b8e693a4528d0c6f642dcee026fe (diff)
Merge pull request #3854 from B4dM4n/registry-pin-write
Save changes made by "nix registry pin" to user registry
-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());
}
};