update README

This commit is contained in:
Daniel Langbein 2023-09-05 16:18:11 +02:00
parent 1da7daafcd
commit e7e8a83532

View File

@ -227,6 +227,23 @@ mkdir -p ~/.cache/nix-index/ && wget -q -N https://github.com/nix-community/nix-
nix-locate -w '/bash' nix-locate -w '/bash'
``` ```
### List files of package
* https://discourse.nixos.org/t/list-files-of-package/25830/2?u=langfingaz
Example for `nano`:
```shell
find $(nix-build '<nixpkgs>' -A nano --no-link)
```
Excerpt of the result:
```
/nix/store/jqvxmx65mfinbsm6db9kmcqmphl44xhp-nano-7.2/share/nano
/nix/store/jqvxmx65mfinbsm6db9kmcqmphl44xhp-nano-7.2/share/nano/asm.nanorc
/nix/store/jqvxmx65mfinbsm6db9kmcqmphl44xhp-nano-7.2/share/nano/autoconf.nanorc
```
### References ### References