[Nix-dev] How to traverse "/nix-support/propagated-native-build-inputs" in nix ?

Volth volth at volth.com
Sun May 14 18:26:21 CEST 2017


As a quick hack, I solved it by make a derivation which do the
travercs in its bash code (in buindCommand) producing a text file as
an output.

inspecting "myPackage.propagatedBuildInputs" looks a cleaner solution, thank you

On 5/14/17, Vladimír Čunát <vcunat at gmail.com> wrote:
> On 05/14/2017 05:16 PM, Volth wrote:
>> I would like to get list of all propagated build inputs in nix
>
> In general you can't even get that file.  As it is designed, that list
> is defined by contents of files in build output, so you can't be certain
> until you produce the path (which is what you want to avoid, if I get
> you right).
>
> You can, of course, inspect myPackage.propagatedBuildInputs
> (recursively), etc.
>
> --Vladimir
>


More information about the nix-dev mailing list