Skip to content

Commit

Permalink
Merge pull request NixOS#13592 from Profpatsch/copyPathToStore-doc
Browse files Browse the repository at this point in the history
lib/copyPathToStore: annotate docstring
  • Loading branch information
ttuegel committed Mar 1, 2016
2 parents 69237f3 + 82fa1a7 commit bf4cafd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/build-support/trivial-builders.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bf4cafd

Please sign in to comment.