[Nix-dev] Using string as path to eg. builtins.readFile

4levels 4levels at gmail.com
Tue Jun 21 01:56:20 CEST 2016


Hi Bas,

Thank you so much! Exactly what I was looking for.
It's these basic things that I keep not getting my head around.. You have
no idea how many fruitless Google and GitHub searches I tried on this one
;-)

Finally resolved and another lesson learned, amazing!

Kind regards,

Erik

On Tue, Jun 21, 2016, 01:39 Bas van Dijk <v.dijk.bas at gmail.com> wrote:

> On 19 June 2016 at 15:58, 4levels <4levels at gmail.com> wrote:
> > builtins.readFile "./keys/${name}"
>
> Hi Erik, try this:
>
>   builtins.readFile (./keys + "/${name}")
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160620/cad1b30e/attachment.html>


More information about the nix-dev mailing list