git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #13592 from Profpatsch/copyPathToStore-doc

lib/copyPathToStore: annotate docstring

commitbf4cafd1ddbd7c396a9df6a5d0fb02f2b7d21896 authorThomas Tuegel <ttuegel@gmail.com> dateTue 1 Mar 2016, 08:38 (11 years ago) parent69237f382fa1a7
1 file changed+3
pkgs/build-support/trivial-builders.nix+3
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.