[Nix-dev] out is not an absolute path?
aszlig
aszlig at redmoonstudios.org
Thu Jan 21 02:40:23 CET 2016
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: Digital signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160121/f0fa2b5c/attachment.bin
More information about the nix-dev
mailing list