Skip to content

Conversation

@jonringer
Copy link
Contributor

@jonringer jonringer commented Jan 14, 2025

nativeBuildInputs and buildInputs are not intuitive.

buildInputs made sense as a "nix build" needed "these things" for a build. However, nativeBuildInputs was added later to differentiate what "needs to be ran at build time, versus what was needed at run time", but the names aren't clear unless you have spelunked in stdenv's nebulous implementation.

Rendered: https://github.com/ekala-project/eeps/blob/rename-cross/eeps/0022-rename-cross-attrs.md

@jonringer jonringer changed the title Rename dependencies attrs to be more intuitive [0022] Rename dependencies attrs to be more intuitive Jan 14, 2025
# CMake is used at buildtime, to produce code for the host platform
buildtimeDeps = [ cmake ];
commands = [ cmake ];

Choose a reason for hiding this comment

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

Hmm, a static binary could have build time deps which are libraries

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you have an example?

Pretty sure the .a's are still targeting hostTarget which would be a buildInputs/library

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.

3 participants