Hi,

On 22/06/14 16:41, Florian Friesdorf wrote:

>> Personally, I would try to do all work from that substituteAll point in 
>> derivations and not through nix strings (i.e. catenate by cat command).

Right. Doing large string rewrites at evaluation time is a bad idea because it's
slow.

> I've got a working solution:
> https://github.com/chaoflow/nixpkgs/blob/2efc8fe32239cccab0e1b89b3c0983a2857dd128/nixos/tests/python.nix#L23
> 
> Should I move replaceSubstring and interpolateAtAtVars to
> lib/strings.nix?

At first glance, these functions seem pretty slow to me (since they use
splitString). So it's probably not a good idea to add them to the standard
library (and I'd prefer removing splitString from there).

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to