Skip to content

Commit

Permalink
nix: Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jul 15, 2020
1 parent 3624c04 commit 2d6d53b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/nix/copy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ struct CmdCopy : StorePathsCommand
#ifdef ENABLE_S3
Example{
"To copy Hello to an S3 binary cache:",
"nix copy --to s3://my-bucket?region=eu-west-1 nixpkgs.hello"
"nix copy --to s3://my-bucket?region=eu-west-1 nixpkgs#hello"
},
Example{
"To copy Hello to an S3-compatible binary cache:",
"nix copy --to s3://my-bucket?region=eu-west-1&endpoint=example.com nixpkgs.hello"
"nix copy --to s3://my-bucket?region=eu-west-1&endpoint=example.com nixpkgs#hello"
},
#endif
};
Expand Down
2 changes: 1 addition & 1 deletion src/nix/edit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct CmdEdit : InstallableCommand
return {
Example{
"To open the Nix expression of the GNU Hello package:",
"nix edit nixpkgs.hello"
"nix edit nixpkgs#hello"
},
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/nix/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ struct CmdLog : InstallableCommand
return {
Example{
"To get the build log of GNU Hello:",
"nix log nixpkgs.hello"
"nix log nixpkgs#hello"
},
Example{
"To get the build log of a specific path:",
"nix log /nix/store/lmngj4wcm9rkv3w4dfhzhcyij3195hiq-thunderbird-52.2.1"
},
Example{
"To get a build log from a specific binary cache:",
"nix log --store https://cache.nixos.org nixpkgs.hello"
"nix log --store https://cache.nixos.org nixpkgs#hello"
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/nix/make-content-addressable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct CmdMakeContentAddressable : StorePathsCommand, MixJSON
return {
Example{
"To create a content-addressable representation of GNU Hello (but not its dependencies):",
"nix make-content-addressable nixpkgs.hello"
"nix make-content-addressable nixpkgs#hello"
},
Example{
"To compute a content-addressable representation of the current NixOS system closure:",
Expand Down
2 changes: 1 addition & 1 deletion src/nix/path-info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
},
Example{
"To show a package's closure size and all its dependencies with human readable sizes:",
"nix path-info -rsSh nixpkgs.rust"
"nix path-info -rsSh nixpkgs#rust"
},
Example{
"To check the existence of a path in a binary cache:",
Expand Down
2 changes: 1 addition & 1 deletion src/nix/show-derivation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct CmdShowDerivation : InstallablesCommand
return {
Example{
"To show the store derivation that results from evaluating the Hello package:",
"nix show-derivation nixpkgs.hello"
"nix show-derivation nixpkgs#hello"
},
Example{
"To show the full derivation graph (if available) that produced your NixOS system:",
Expand Down
6 changes: 3 additions & 3 deletions src/nix/why-depends.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ struct CmdWhyDepends : SourceExprCommand
return {
Example{
"To show one path through the dependency graph leading from Hello to Glibc:",
"nix why-depends nixpkgs.hello nixpkgs.glibc"
"nix why-depends nixpkgs#hello nixpkgs#glibc"
},
Example{
"To show all files and paths in the dependency graph leading from Thunderbird to libX11:",
"nix why-depends --all nixpkgs.thunderbird nixpkgs.xorg.libX11"
"nix why-depends --all nixpkgs#thunderbird nixpkgs#xorg.libX11"
},
Example{
"To show why Glibc depends on itself:",
"nix why-depends nixpkgs.glibc nixpkgs.glibc"
"nix why-depends nixpkgs#glibc nixpkgs#glibc"
},
};
}
Expand Down

0 comments on commit 2d6d53b

Please sign in to comment.