diff --git a/README.md b/README.md index 112d962..08dfae6 100644 --- a/README.md +++ b/README.md @@ -227,6 +227,23 @@ mkdir -p ~/.cache/nix-index/ && wget -q -N https://github.com/nix-community/nix- 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 '' -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