Merge pull request #3190 from mkenigs/examples

change deprecated attribute syntax in run examples
This commit is contained in:
Eelco Dolstra 2019-11-05 11:17:54 +01:00 committed by GitHub
commit 9ff4060d26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,15 +113,15 @@ struct CmdRun : InstallablesCommand, RunCommon
},
Example{
"To start a shell providing youtube-dl from your 'nixpkgs' channel:",
"nix run nixpkgs.youtube-dl"
"nix run nixpkgs#youtube-dl"
},
Example{
"To run GNU Hello:",
"nix run nixpkgs.hello -c hello --greeting 'Hi everybody!'"
"nix run nixpkgs#hello -c hello --greeting 'Hi everybody!'"
},
Example{
"To run GNU Hello in a chroot store:",
"nix run --store ~/my-nix nixpkgs.hello -c hello"
"nix run --store ~/my-nix nixpkgs#hello -c hello"
},
};
}