From fb3fb0c06068ef0531db72c1d30b5235fa9911a1 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 23 Nov 2023 15:58:44 +0100 Subject: [PATCH] Update source/tutorials/file-sets.md Co-authored-by: Valentin Gagarin --- source/tutorials/file-sets.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/tutorials/file-sets.md b/source/tutorials/file-sets.md index 9d43455..93495d7 100644 --- a/source/tutorials/file-sets.md +++ b/source/tutorials/file-sets.md @@ -6,12 +6,8 @@ Also use https://nixos.org/manual/nixpkgs/unstable/#sec-functions-library-filese instead of https://nixos.org/manual/nixpkgs/unstable/#sec-fileset --> -To build a local project in a Nix derivation, -its source files must be accessible -to the [derivation builder](https://nixos.org/manual/nix/stable/language/derivations#attr-builder). -Since by default, derivations get built in an [isolated environment](https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-sandbox) -that only allows reading from the Nix store, -the Nix language has built-in features to copy local files to the store and expose the resulting store paths. +To build a local project in a Nix derivation, source files must be accessible to its [`builder` executable](https://nixos.org/manual/nix/stable/language/derivations#attr-builder). +Since by default, the `builder` runs in an [isolated environment](https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-sandbox) that only allows reading from the Nix store, the Nix language has built-in features to copy local files to the store and expose the resulting store paths. Using these features directly can be tricky however: