diff options
author | Shea Levy <shea@shealevy.com> | 2019-01-14T16·34-0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2019-01-31T13·52-0500 |
commit | b30be6b450f872f8be6dc8afa28f4b030fa8d1d1 (patch) | |
tree | 34a70603cf1f640dd277df7963996c3de7bac6a7 /tests/lang | |
parent | 1d757292d0cb78beec32fcdfe15c2944a4bc4a95 (diff) |
Add builtins.appendContext.
A partner of builtins.getContext, useful for the same reasons.
Diffstat (limited to 'tests/lang')
-rw-r--r-- | tests/lang/eval-okay-context-introspection.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lang/eval-okay-context-introspection.nix b/tests/lang/eval-okay-context-introspection.nix index d9b2ea354990..43178bd2eef9 100644 --- a/tests/lang/eval-okay-context-introspection.nix +++ b/tests/lang/eval-okay-context-introspection.nix @@ -18,5 +18,7 @@ let }; }; - legit-context = "${path}${drv.outPath}${drv.foo.outPath}${drv.drvPath}"; -in builtins.getContext legit-context == desired-context + legit-context = builtins.getContext "${path}${drv.outPath}${drv.foo.outPath}${drv.drvPath}"; + + constructed-context = builtins.getContext (builtins.appendContext "" desired-context); +in legit-context == constructed-context |