aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/eval-okay-hash.nix
blob: 2fff17f849bb3c38ce96a92110edf51cf2a0de24 (plain)
1
2
3
4
5
6
7
let
  md5 = builtins.hashString "md5";
  sha1 = builtins.hashString "sha1";
  sha256 = builtins.hashString "sha256";
  strings = [ "" "text 1" "text 2" ];
in
  (builtins.map md5 strings) ++ (builtins.map sha1 strings) ++ (builtins.map sha256 strings)