mirror of
https://github.com/NixOS/nix.git
synced 2024-11-23 07:12:27 +00:00
Save changes made by "nix registry pin" to user registry
This commit is contained in:
parent
d58ab591d4
commit
b9ead08ca8
@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user