about summary refs log tree commit diff
path: root/third_party/nix/tests/lang/eval-okay-overrides.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/tests/lang/eval-okay-overrides.nix')
-rw-r--r--third_party/nix/tests/lang/eval-okay-overrides.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/nix/tests/lang/eval-okay-overrides.nix b/third_party/nix/tests/lang/eval-okay-overrides.nix
new file mode 100644
index 000000000000..358742b36e22
--- /dev/null
+++ b/third_party/nix/tests/lang/eval-okay-overrides.nix
@@ -0,0 +1,9 @@
+let
+
+  overrides = { a = 2; };
+
+in (rec {
+  __overrides = overrides;
+  x = a;
+  a = 1;
+}).x