mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 00:06:26 -04:00
Merge pull request #878 from fricklerhandwerk/highlight
highlight recommendation to use search.nixos.org
This commit is contained in:
commit
12649edcde
|
@ -59,7 +59,9 @@ The program ‘lolcat’ is currently not installed.
|
|||
What can you put in a shell environment?
|
||||
If you can think of it, there's probably a Nix package of it.
|
||||
|
||||
:::{tip}
|
||||
Enter the program name you want to run in [search.nixos.org](https://search.nixos.org/packages) to find packages that provide it.
|
||||
:::
|
||||
|
||||
For the following example, find the package names for these programs:
|
||||
|
||||
|
|
|
@ -71,7 +71,12 @@ We specify `bash` as the interpreter for the rest of the file with the `-i` opti
|
|||
We enable the `--pure` option to prevent the script from implicitly using programs that may already exist on the system that will run the script.
|
||||
|
||||
With the `-p` option we specify the packages required for the script to run.
|
||||
The command `xml2json` is provided by the package `python3Packages.xmljson`, while `bash`, `jq`, and `curl` are provided by packages of the same name. `cacert` must be present for SSL authentication to work. Use [search.nixos.org](https://search.nixos.org/packages) to find packages providing the program you need.
|
||||
The command `xml2json` is provided by the package `python3Packages.xmljson`, while `bash`, `jq`, and `curl` are provided by packages of the same name.
|
||||
`cacert` must be present for SSL authentication to work.
|
||||
|
||||
:::{tip}
|
||||
Use [search.nixos.org](https://search.nixos.org/packages) to find packages providing the program you need.
|
||||
:::
|
||||
|
||||
The parameter of `-I` refers to a specific Git commit of the Nixpkgs repository.
|
||||
This ensures that the script will always run with the exact same packages versions, everywhere.
|
||||
|
|
Loading…
Reference in a new issue