Merge pull request #3854 from B4dM4n/registry-pin-write

Save changes made by "nix registry pin" to user registry
This commit is contained in:
Eelco Dolstra 2020-07-23 16:13:05 +02:00 committed by GitHub
commit 4bfba1305e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());
}
};