2014-10-19 02:34:48 +02:00
|
|
|
let s = "foo ${builtins.substring 33 100 (baseNameOf "${./eval-okay-context.nix}")} bar";
|
2008-01-04 15:22:49 +01:00
|
|
|
in
|
2014-06-10 14:02:56 +02:00
|
|
|
if s != "foo eval-okay-context.nix bar"
|
2008-01-04 15:22:49 +01:00
|
|
|
then abort "context not discarded"
|
|
|
|
else builtins.unsafeDiscardStringContext s
|
|
|
|
|