1
0
Fork 0
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:
Silvan Mosberger 2024-01-29 01:13:27 +01:00 committed by GitHub
commit 12649edcde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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?
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:

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.
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.