From e7e8a83532edc73a04cf31295a892ae1fcbb4faf Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Tue, 5 Sep 2023 16:18:11 +0200 Subject: [PATCH] update README --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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