[Nix-dev] Documentation for multiple-outputs in nixpkgs

Edward Tjörnhammar ed at cflags.cc
Wed May 11 15:18:04 CEST 2016


On Wed, May 11, 2016 at 12:19:21PM +0200, Vladimír Čunát wrote:
> On 05/11/2016 11:37 AM, Edward Tjörnhammar wrote:
> > Just to pester you :) I would like to have just one custom output, i.e.
> > 'outputs = [ "quux" ]', but this errors out with "found no valid
> > variant!". This list of mandatory first outputs should probably also be
> > documented as such.
>
> The problem is that setup of `$outputFoo` values. In your case guessing
> won't work, but you can specify `outputFoo = "quux";` in your derivation.

This works somewhat, I don't get a "quux" attribute on my aggregator for
some reason so I need to manually add 'passthru.quux="$quux"' to my
derivation. Alternatively adding "out" to outputs and creating the
directory(just mkdir $out $quux) yields the behaviour I was
expecting.

This made me think of another thing; there should probably be some
sanity checking so that passthru attributes don't collide with the
outputs.

>
>



More information about the nix-dev mailing list