mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Merge pull request #13592 from Profpatsch/copyPathToStore-doc
lib/copyPathToStore: annotate docstring
This commit is contained in:
commit
bf4cafd1dd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user