mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
add copyPathToStore and copyPathsToStore
This commit is contained in:
parent
8baebb55d4
commit
d6bec4e77f
@ -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;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user