about summary refs log tree commit diff
path: root/tvix/glue/src/tests/tvix_tests/eval-okay-storePath.nix
blob: 99205cb9e0285fb715fdbd97f7afa7599463bcd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
let
  path = builtins.unsafeDiscardStringContext "${../empty-file}";
  storePath = builtins.storePath path;
  context = builtins.getContext storePath;
in
{
  hasContext = builtins.hasContext storePath;
  contextMatches = context == { "${path}" = { path = true; }; };
}