[Nix-dev] [nix language] strings that have paths/derivations embedded
Marc Weber
marco-oweber at gmx.de
Tue Oct 9 12:18:40 CEST 2012
Excerpts from Mathijs Kwik's message of Tue Oct 09 12:09:33 +0200 2012:
> I found the scary-sounding function "unsafeDiscardStringContext",
> which seems to work around this problem.
> Can someone please shed some light on what's going on (or nix
> string/context handling in general) and if it that function is safe to
> use for this case.
Example:
yourderivation {
name =
scritp = ''
${unsafeDiscardStringContext otherDerivation}
'';
}
AFAIK this should not build otherDerivation, but pass the store path of
otherDerivation.
Marc Weber
More information about the nix-dev
mailing list