copyPathToStore
pkgs.copyPathToStore
Docs pulled from | This Revision | 17 minutes ago
Nixpkgs manual
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>}.
Noogle detected
Implementation
This function is implemented in c++ and is part of the native nix runtime.
Implementation
The following is the current implementation of this function.
copyPathToStore = builtins.filterSource (p: t: true);