lib/copyPathToStore: annotate docstring

This commit is contained in:
Profpatsch 2016-03-01 15:26:01 +01:00
parent 69237f371c
commit 82fa1a796b
1 changed files with 3 additions and 0 deletions
pkgs/build-support

View File

@ -157,6 +157,9 @@ rec {
'';
# Copy a path to the Nix store.
# Nix automatically copies files to the store before stringifying paths.
# If you need the store path of a file, ${copyPathToStore <path>} can be
# shortened to ${<path>}.
copyPathToStore = builtins.filterSource (p: t: true);
# Copy a list of paths to the Nix store.