Vladimír Čunát <[email protected]> writes:
> On 06/22/2014 03:45 PM, Florian Friesdorf wrote:
>> Now I try to read this file:
>
> Ah, sorry, I didn't notice that you used the result as a nix string.
>
> Switching back and forth between nix (strings) and derivations (files) 
> is better avoided. The readFile function is only meant for what you have 
> among the nix source expressions. One probably can do more with 
> "recursive nix".
>
> 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).

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?

Suggestions for better naming?

-- 
Florian Friesdorf <[email protected]>
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: [email protected]
IRC: chaoflow on freenode,ircnet,blafasel,OFTC

Attachment: pgpgCPZ4wOU6C.pgp
Description: PGP signature

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to