+200
-200
lib/fileset/default.nix
+200
-200
lib/fileset/default.nix
···Add the local files contained in `fileset` to the store as a single [store path](https://nixos.org/manual/nix/stable/glossary#gloss-store-path) rooted at `root`.The result is the store path as a string-like value, making it usable e.g. as the `src` of a derivation, or in string interpolation:···-A file set can be turned back into a source using [`toSource`](#function-library-lib.fileset.toSource).-Turning the result of this function back into a source using `toSource` will therefore not preserve empty directories.-lib.fileset.fromSource: The source origin of the argument is a string-like value ("${toString path}"), but it should be a path instead.-Sources created from paths in strings cannot be turned into file sets, use `lib.sources` or derivations instead.''-lib.fileset.fromSource: The source origin of the argument is of type ${typeOf path}, but it should be a path instead.''-lib.fileset.fromSource: The source origin (${toString path}) of the argument is a path that does not exist.''-# If there's no filter, no need to run the expensive conversion, all subpaths will be included···-This matches result of calling [`builtins.readFileType`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-readFileType) on the file's path.-lib.fileset.fileFilter: First argument is of type ${typeOf predicate}, but it should be a function instead.''-If you need to filter files in a file set, use `intersection fileset (fileFilter pred ./.)` instead.''-lib.fileset.fileFilter: Second argument is of type ${typeOf path}, but it should be a path instead.''···-In comparison, [`trace`](#function-library-lib.fileset.trace) takes another argument to return.-# but that would then duplicate work for consumers of the fileset, because then they have to coerce it againCreate a file set containing all [Git-tracked files](https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository) in a repository.
···+In comparison, [`trace`](#function-library-lib.fileset.trace) takes another argument to return.+# but that would then duplicate work for consumers of the fileset, because then they have to coerce it againAdd the local files contained in `fileset` to the store as a single [store path](https://nixos.org/manual/nix/stable/glossary#gloss-store-path) rooted at `root`.The result is the store path as a string-like value, making it usable e.g. as the `src` of a derivation, or in string interpolation:·········+This matches result of calling [`builtins.readFileType`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-readFileType) on the file's path.+lib.fileset.fileFilter: First argument is of type ${typeOf predicate}, but it should be a function instead.''+If you need to filter files in a file set, use `intersection fileset (fileFilter pred ./.)` instead.''+lib.fileset.fileFilter: Second argument is of type ${typeOf path}, but it should be a path instead.''+A file set can be turned back into a source using [`toSource`](#function-library-lib.fileset.toSource).+Turning the result of this function back into a source using `toSource` will therefore not preserve empty directories.+lib.fileset.fromSource: The source origin of the argument is a string-like value ("${toString path}"), but it should be a path instead.+Sources created from paths in strings cannot be turned into file sets, use `lib.sources` or derivations instead.''+lib.fileset.fromSource: The source origin of the argument is of type ${typeOf path}, but it should be a path instead.''+lib.fileset.fromSource: The source origin (${toString path}) of the argument is a path that does not exist.''+# If there's no filter, no need to run the expensive conversion, all subpaths will be includedCreate a file set containing all [Git-tracked files](https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository) in a repository.