nix: Fix examples

This commit is contained in:
Eelco Dolstra 2020-07-15 20:28:16 +02:00
parent 3624c042ac
commit 2d6d53bc87
7 changed files with 11 additions and 11 deletions

View File

@ -72,11 +72,11 @@ struct CmdCopy : StorePathsCommand
#ifdef ENABLE_S3 #ifdef ENABLE_S3
Example{ Example{
"To copy Hello to an S3 binary cache:", "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{ Example{
"To copy Hello to an S3-compatible binary cache:", "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 #endif
}; };

View File

@ -20,7 +20,7 @@ struct CmdEdit : InstallableCommand
return { return {
Example{ Example{
"To open the Nix expression of the GNU Hello package:", "To open the Nix expression of the GNU Hello package:",
"nix edit nixpkgs.hello" "nix edit nixpkgs#hello"
}, },
}; };
} }

View File

@ -18,7 +18,7 @@ struct CmdLog : InstallableCommand
return { return {
Example{ Example{
"To get the build log of GNU Hello:", "To get the build log of GNU Hello:",
"nix log nixpkgs.hello" "nix log nixpkgs#hello"
}, },
Example{ Example{
"To get the build log of a specific path:", "To get the build log of a specific path:",
@ -26,7 +26,7 @@ struct CmdLog : InstallableCommand
}, },
Example{ Example{
"To get a build log from a specific binary cache:", "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"
}, },
}; };
} }

View File

@ -23,7 +23,7 @@ struct CmdMakeContentAddressable : StorePathsCommand, MixJSON
return { return {
Example{ Example{
"To create a content-addressable representation of GNU Hello (but not its dependencies):", "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{ Example{
"To compute a content-addressable representation of the current NixOS system closure:", "To compute a content-addressable representation of the current NixOS system closure:",

View File

@ -40,7 +40,7 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
}, },
Example{ Example{
"To show a package's closure size and all its dependencies with human readable sizes:", "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{ Example{
"To check the existence of a path in a binary cache:", "To check the existence of a path in a binary cache:",

View File

@ -33,7 +33,7 @@ struct CmdShowDerivation : InstallablesCommand
return { return {
Example{ Example{
"To show the store derivation that results from evaluating the Hello package:", "To show the store derivation that results from evaluating the Hello package:",
"nix show-derivation nixpkgs.hello" "nix show-derivation nixpkgs#hello"
}, },
Example{ Example{
"To show the full derivation graph (if available) that produced your NixOS system:", "To show the full derivation graph (if available) that produced your NixOS system:",

View File

@ -55,15 +55,15 @@ struct CmdWhyDepends : SourceExprCommand
return { return {
Example{ Example{
"To show one path through the dependency graph leading from Hello to Glibc:", "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{ Example{
"To show all files and paths in the dependency graph leading from Thunderbird to libX11:", "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{ Example{
"To show why Glibc depends on itself:", "To show why Glibc depends on itself:",
"nix why-depends nixpkgs.glibc nixpkgs.glibc" "nix why-depends nixpkgs#glibc nixpkgs#glibc"
}, },
}; };
} }