about summary refs log tree commit diff
path: root/tvix/glue/src/tests/tvix_tests/eval-okay-toxml-context.nix
blob: 35247098038381f4fe1b862a8efb051bc38fce04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[
  # builtins.toXML retains context where there is.
  (builtins.getContext (builtins.toXML {
    inherit (derivation {
      name = "test";
      builder = "/bin/sh";
      system = "x86_64-linux";
    }) drvPath;
  }))

  # this should have no context.
  (builtins.hasContext
    (builtins.toXML { }))
]