NixOS / NixOS/nix

Multiple outputs are not supported in fixed-output derivations

Open
#2,136 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
17.7k
Forks
2k
Avg merge
1d 16h
Merged PRs (30d)
80

Description

From src/libexpr/primops.cc,

multiple outputs are not supported in fixed-output derivations

I was looking into making `cacert' a fixed output derivation - but ran into this error. Is there any plan to get these two things to work together? I think you would just need to have a way to specify different hashes for each of the expected outputs.

/cc @edolstra

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/libexpr/primops.cc, where the “multiple outputs are not supported in fixed-output derivations” error is reported. Trace how fixed-output derivations and output hashes are represented, then determine the required behavior for specifying different hashes for each expected output; done means multiple outputs can work with fixed-output derivations.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.