On Thu, Jan 21, 2016 at 05:11:23AM +0800, stewart mackenzie wrote:
> error: string ‘$out’ doesn't represent an absolute path

You need to use something like basename "$out", because $out is a shell
variable, not a Nix attribute or string interpolation (if it it would
be, there still wouldn't be an `out` attribute).

So in this particular case, you need to do something like this:

\"${name}\" => { Some (\"$(basename "$out")\") }, ...

The reason why this worked without builtins.toPath is because splitting
"$out" will get you ["$out"] and applying last to it will get you "$out"
again.

a!
-- 
aszlig
Universal dilettante

Attachment: signature.asc
Description: Digital signature

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

Reply via email to