lib/copyPathToStore: annotate docstring
commit82fa1a796b1e8be27e5c02bc00c6cdba06b26693
authorProfpatsch <mail@profpatsch.de>
dateTue 1 Mar 2016, 15:26 (11 years ago)
parent69237f3
pkgs/build-support/trivial-builders.nix+3
@@ -157,6 +157,9 @@ rec {
157157 '';
158158
159159 # Copy a path to the Nix store.
160+ # Nix automatically copies files to the store before stringifying paths.
161+ # If you need the store path of a file, ${copyPathToStore <path>} can be
162+ # shortened to ${<path>}.
160163 copyPathToStore = builtins.filterSource (p: t: true);
161164
162165 # Copy a list of paths to the Nix store.