Skip to content

Generic builder needs to use baseInputs also#254

Open
lboclboc wants to merge 1 commit into
NixOS:masterfrom
lboclboc:patch-1
Open

Generic builder needs to use baseInputs also#254
lboclboc wants to merge 1 commit into
NixOS:masterfrom
lboclboc:patch-1

Conversation

@lboclboc
Copy link
Copy Markdown

@lboclboc lboclboc commented Nov 1, 2024

The generic builder only use buildInputs, but the autotools.nix defines baseInputs so the generic builder needs to use both the final packages PATHS (first) and the autotools PATHS (last)

The generic builder only use buildInputs, but the autotools.nix defines baseInputs so the generic builder needs to use both the final packages PATHS (first) and the autotools PATHS (last)
{ a = "c"; }
```

**Exercise:** Complete the new `builder.sh` by adding `$baseInputs` in the `for` loop together with `$buildInputs`. As you noticed, we passed that new variable in the derivation. Instead of merging buildInputs with the base ones, we prefer to preserve buildInputs as seen by the caller, so we keep them separated. Just a matter of choice.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem relevant since this line asks the reader to write the fix as an exercise. First version of the script is correct, baseIputs (the bug) is introduced in the second version, right before the exercise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants