about summary refs log tree commit diff
path: root/third_party/nix/tests/lang/eval-okay-builtins.nix
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;
  
}