[Nix-dev] iterating over outputs of derivations
Luca Bruno
lethalman88 at gmail.com
Tue Mar 24 10:34:24 CET 2015
On 23/03/2015 19:52, Luis Torres wrote:
> 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?
stdenv.lib.concatStringsSep ";" (lib.concatMap (pkg: pkg.all) buildInputs)
More information about the nix-dev
mailing list