[Nix-dev] Multiple outputs: is a first output necessary?

Vladimír Čunát vcunat at gmail.com
Wed Dec 7 20:40:31 CET 2016


Hi.

On 12/07/2016 01:13 PM, Freddy Rietdijk wrote:
> I'm not using any of the common outputs like $out and $bin. The multiple
> outputs feature seems to require that $out is used. Therefore I now just
> put a single file in $out. What is the reason this is needed? I saw in
> the documentation that leftover files are typically put in $out.

I don't think it's strictly required at all. The only problem I know of
is that lots of standard variables provided by the framework default to
$out (transitively), like $outputDev etc.  If you define these as
arguments to mkDerivation, it might work.

You can see the setting up of those on
https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/setup-hooks/multiple-outputs.sh#L32

--Vladimir


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3771 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161207/3a1a1f74/attachment.p7s>


More information about the nix-dev mailing list