diff options
author | Shea Levy <shea@shealevy.com> | 2019-01-14 11:34:54 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2019-01-31 08:52:23 -0500 |
commit | b30be6b450f872f8be6dc8afa28f4b030fa8d1d1 (patch) | |
tree | 34a70603cf1f640dd277df7963996c3de7bac6a7 /tests/lang/eval-okay-context-introspection.nix | |
parent | 1d757292d0cb78beec32fcdfe15c2944a4bc4a95 (diff) |
Add builtins.appendContext.
A partner of builtins.getContext, useful for the same reasons.
Diffstat (limited to 'tests/lang/eval-okay-context-introspection.nix')
-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 d9b2ea354..43178bd2e 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 |