diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2015-12-16 15:00:44 -0600 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2015-12-16 15:00:44 -0600 |
commit | d6bec4e77f3431261ee08c19f04d1bf81003f9b7 (patch) | |
tree | 19bde052f71b2ea0722c411d9669238ba35e75ee /pkgs/build-support/trivial-builders.nix | |
parent | 8baebb55d43804733c77ac8263fe75e92b544a50 (diff) | |
download | nixpkgs-d6bec4e77f3431261ee08c19f04d1bf81003f9b7.tar nixpkgs-d6bec4e77f3431261ee08c19f04d1bf81003f9b7.tar.gz nixpkgs-d6bec4e77f3431261ee08c19f04d1bf81003f9b7.tar.bz2 nixpkgs-d6bec4e77f3431261ee08c19f04d1bf81003f9b7.tar.lz nixpkgs-d6bec4e77f3431261ee08c19f04d1bf81003f9b7.tar.xz nixpkgs-d6bec4e77f3431261ee08c19f04d1bf81003f9b7.tar.zst nixpkgs-d6bec4e77f3431261ee08c19f04d1bf81003f9b7.zip |
add copyPathToStore and copyPathsToStore
Diffstat (limited to 'pkgs/build-support/trivial-builders.nix')
-rw-r--r-- | pkgs/build-support/trivial-builders.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/build-support/trivial-builders.nix b/pkgs/build-support/trivial-builders.nix index 9203425b20a..1350e36940b 100644 --- a/pkgs/build-support/trivial-builders.nix +++ b/pkgs/build-support/trivial-builders.nix @@ -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; + } |