diff options
author | Shea Levy <shea@shealevy.com> | 2018-01-25 07:05:57 -0800 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-02-06 16:48:08 -0500 |
commit | 69d82e5c58bf6d7e16fc296f598c352da2a618d0 (patch) | |
tree | 22f76d4df9460225f7877c8c4eca4b9c2ecdc9e2 /tests/lang/eval-okay-path.nix | |
parent | 98f3c75a0e16f5aaaecb25a46f988580efb04d19 (diff) |
Add path primop.
builtins.path allows specifying the name of a path (which makes paths
with store-illegal names now addable), allows adding paths with flat
instead of recursive hashes, allows specifying a filter (so is a
generalization of filterSource), and allows specifying an expected
hash (enabling safe path adding in pure mode).
Diffstat (limited to 'tests/lang/eval-okay-path.nix')
-rw-r--r-- | tests/lang/eval-okay-path.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-path.nix b/tests/lang/eval-okay-path.nix new file mode 100644 index 000000000..e67168cf3 --- /dev/null +++ b/tests/lang/eval-okay-path.nix @@ -0,0 +1,7 @@ +builtins.path + { path = ./.; + filter = path: _: baseNameOf path == "data"; + recursive = true; + sha256 = "1yhm3gwvg5a41yylymgblsclk95fs6jy72w0wv925mmidlhcq4sw"; + name = "output"; + } |