[Nix-dev] iterating over outputs of derivations

Luis Torres lgtorres42 at gmail.com
Mon Mar 23 19:52:28 CET 2015


Howdy,

I'd like to generate an attribute that is a string of all my derivation's
buildInputs. I'm currently trying this:

buildInputs = ...

inputPaths = stdenv.lib.concatStringsSep ";" buildInputs;

This does not work if a buildInput has multiple outputs, like boost for
example. The boost derivation outputs paths for ${boost.lib} and
${boost.dev}. The above line would only capture boost's "out" path; how can
I add all outputs of all buildInputs to my attribute?

Thanks,
Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150323/36f6be2c/attachment.html 


More information about the nix-dev mailing list