Add builtins.appendContext.
A partner of builtins.getContext, useful for the same reasons.
This commit is contained in:
parent
1d757292d0
commit
b30be6b450
2 changed files with 61 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue