Thanks, even if that doesn't go into the docs, I'm putting that into a
github gist.
On 21/06/2016 5:44 PM, Bas van Dijk wrote:
Hi Erik,
Do note that I went through the same trouble as you figuring out how
to apply builtins.readFile to a dynamically constructed path. Maybe we
can document this
Hi Erik,
Do note that I went through the same trouble as you figuring out how
to apply builtins.readFile to a dynamically constructed path. Maybe we
can document this "trick" in the documentation of builtins.readFile so
other people don't have to go through the same trouble.
To understand these t
Hi Bas,
Out of curiosity I've been experimenting with different approaches but only
yours works and I have no clue why.. Is there anything I can learn / read
/ study to understand why? Without having to study C++ (or python for that
matter as I can't even tell them apart ;-)
Is this basic lambda
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, Ju
On 19 June 2016 at 15:58, 4levels <4lev...@gmail.com> wrote:
> builtins.readFile "./keys/${name}"
Hi Erik, try this:
builtins.readFile (./keys + "/${name}")
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listin
Hi Nix-devs,
I'm currently looking for a way to do a readFile with a path coming from a
list of values.
In the list I defined the path as a string, relative to the current
directory. When I try to use this value in a function, I keep getting the
error that the path is not absolute
"string ‘./key