From d554da990f9a26882423c89f6abdeabde17272e9 Mon Sep 17 00:00:00 2001 From: YSawc <42827807+YSawc@users.noreply.github.com> Date: Thu, 25 Jul 2024 21:59:11 +0900 Subject: [PATCH] working with local files: Add output example (#1025) --- source/tutorials/working-with-local-files.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/tutorials/working-with-local-files.md b/source/tutorials/working-with-local-files.md index 53855d02b..b3342dd7a 100644 --- a/source/tutorials/working-with-local-files.md +++ b/source/tutorials/working-with-local-files.md @@ -379,6 +379,19 @@ Create a file set containing a union of the files to exclude (`fs.unions [ ... ] ]); ``` +This will work as expected: + +``` +$ nix-build +trace: /home/user/fileset +trace: - hello.txt (regular) +trace: - world.txt (regular) +this derivation will be built: + /nix/store/gr2hw3gdjc28fmv0as1ikpj7lya4r51f-fileset.drv +... +/nix/store/ckn40y7hgqphhbhyrq64h9r6rvdh973r-fileset +``` + Changing any of the excluded files now doesn't necessarily cause a new build anymore: ```