Save changes made by "nix registry pin" to user registry

This commit is contained in:
Fabian Möller 2020-07-23 14:21:27 +02:00
parent d58ab591d4
commit b9ead08ca8
No known key found for this signature in database
GPG key ID: 70B29D65DD8A7E31

View file

@ -111,6 +111,7 @@ struct CmdRegistryPin : virtual Args, EvalCommand
fetchers::Attrs extraAttrs; fetchers::Attrs extraAttrs;
if (ref.subdir != "") extraAttrs["dir"] = ref.subdir; if (ref.subdir != "") extraAttrs["dir"] = ref.subdir;
userRegistry->add(ref.input, resolved, extraAttrs); userRegistry->add(ref.input, resolved, extraAttrs);
userRegistry->write(fetchers::getUserRegistryPath());
} }
}; };