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

  overrides = {
    import = fn: scopedImport overrides fn;

    scopedImport = attrs: fn: scopedImport (overrides // attrs) fn;

    builtins = builtins // overrides;
  } // import ./lib.nix;

in scopedImport overrides ./imported.nix