1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

* New primop `unsafeDiscardStringContext' to get rid of string

contexts.  Needed to prevent unnecessary dependencies when building
  the NixOS manual.
This commit is contained in:
Eelco Dolstra 2008-01-04 14:22:49 +00:00
parent 895c953817
commit 7d0f6aed59
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,6 @@
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