about summary refs log blame commit diff
path: root/tvix/glue/src/tests/tvix_tests/eval-okay-toxml-context.nix
blob: 35247098038381f4fe1b862a8efb051bc38fce04 (plain) (tree)
1
2
3
4
5
6
7





                                                  
                              






                                
[
  # 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 { }))
]