mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 16:52:27 +00:00
7d0f6aed59
contexts. Needed to prevent unnecessary dependencies when building the NixOS manual.
7 lines
213 B
Nix
7 lines
213 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
|
|
|