mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
Formatting
This commit is contained in:
parent
730f6bf616
commit
57397a37ae
2 changed files with 3 additions and 2 deletions
|
@ -92,10 +92,11 @@ MixEvalArgs::MixEvalArgs()
|
||||||
|
|
||||||
```
|
```
|
||||||
nixpkgs=flake:github:NixOS/nixpkgs/nixos-22.05
|
nixpkgs=flake:github:NixOS/nixpkgs/nixos-22.05
|
||||||
|
```
|
||||||
|
|
||||||
makes `<nixpkgs>` refer to a particular branch of the
|
makes `<nixpkgs>` refer to a particular branch of the
|
||||||
`NixOS/nixpkgs` repository on GitHub.
|
`NixOS/nixpkgs` repository on GitHub.
|
||||||
```)",
|
)",
|
||||||
.category = category,
|
.category = category,
|
||||||
.labels = {"path"},
|
.labels = {"path"},
|
||||||
.handler = {[&](std::string s) { searchPath.push_back(s); }}
|
.handler = {[&](std::string s) { searchPath.push_back(s); }}
|
||||||
|
|
|
@ -188,7 +188,7 @@ struct CmdRegistryPin : RegistryCommand, EvalCommand
|
||||||
auto ref = parseFlakeRef(url);
|
auto ref = parseFlakeRef(url);
|
||||||
auto lockedRef = parseFlakeRef(locked);
|
auto lockedRef = parseFlakeRef(locked);
|
||||||
registry->remove(ref.input);
|
registry->remove(ref.input);
|
||||||
auto resolved = lockedRef.resolve(store).input.getAccessor(store).second;
|
auto resolved = lockedRef.resolve(store).input.getAccessor(store).second;
|
||||||
if (!resolved.isLocked())
|
if (!resolved.isLocked())
|
||||||
warn("flake '%s' is not locked", resolved.to_string());
|
warn("flake '%s' is not locked", resolved.to_string());
|
||||||
fetchers::Attrs extraAttrs;
|
fetchers::Attrs extraAttrs;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue