add copyPathToStore and copyPathsToStore

This commit is contained in:
Thomas Tuegel 2015-12-16 15:00:44 -06:00
parent 8baebb55d4
commit d6bec4e77f

View file

@ -153,4 +153,10 @@ _EOF_
exec ${bin} "$@"
'';
# Copy a path to the Nix store.
copyPathToStore = builtins.filterSource (p: t: true);
# Copy a list of paths to the Nix store.
copyPathsToStore = builtins.map copyPathToStore;
}