mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
7 lines
217 B
Nix
7 lines
217 B
Nix
let
|
|
s = "foo ${builtins.substring 33 100 (baseNameOf "${./eval-okay-context.nix}")} bar";
|
|
in
|
|
if s != "foo eval-okay-context.nix bar" then
|
|
abort "context not discarded"
|
|
else
|
|
builtins.unsafeDiscardStringContext s
|