about summary refs log blame commit diff
path: root/third_party/nix/src/tests/lang/eval-okay-builtins.nix
blob: e9d65e88a817560eb8c843d711426a94cd0771cc (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                               
assert builtins ? currentSystem;
assert !builtins ? __currentSystem;

let {

  x = if builtins ? dirOf then builtins.dirOf /foo/bar else "";

  y = if builtins ? fnord then builtins.fnord "foo" else "";

  body = x + y;
  
}