1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 00:06:26 -04:00

highlight recommendation to use search.nixos.org

this way it's easier to find and probably also remember
This commit is contained in:
Valentin Gagarin 2024-01-28 19:52:25 +01:00
parent 75eceb50cd
commit b0a8a39fce
2 changed files with 8 additions and 1 deletions

View file

@ -59,7 +59,9 @@ The program lolcat is currently not installed.
What can you put in a shell environment? What can you put in a shell environment?
If you can think of it, there's probably a Nix package of it. 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. 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: For the following example, find the package names for these programs:

View file

@ -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. 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. 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. 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. This ensures that the script will always run with the exact same packages versions, everywhere.