about summary refs log tree commit diff
path: root/tvix/eval/src/tests/nix_tests/notyetpassing/eval-okay-zipAttrsWith.nix
blob: e5d4cdccb74ee71cc73df570541102829f8128dc (plain) (blame)
1
2
3
4
5
6
7
8
9
with import ./../lib.nix;

let
  str = builtins.hashString "sha256" "test";
in
builtins.zipAttrsWith
  (n: v: { inherit n v; })
  (map (n: { ${builtins.substring n 1 str} = n; })
    (range 0 31))