about summary refs log tree commit diff
path: root/tests/lang/eval-okay-hashfile.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/eval-okay-hashfile.nix')
-rw-r--r--tests/lang/eval-okay-hashfile.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-hashfile.nix b/tests/lang/eval-okay-hashfile.nix
new file mode 100644
index 000000000000..aff5a1856814
--- /dev/null
+++ b/tests/lang/eval-okay-hashfile.nix
@@ -0,0 +1,4 @@
+let
+  paths = [ ./data ./binary-data ];
+in
+  builtins.concatLists (map (hash: map (builtins.hashFile hash) paths) ["md5" "sha1" "sha256" "sha512"])