Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document usage and purpose of (propagated)nativeBuildInputs in nixpkgs manual #1915

Closed
vcunat opened this issue Mar 10, 2014 · 24 comments
Closed
Labels
0.kind: enhancement Add something new 3.skill: trivial This is trivial to complete (typically find-and-replace) 6.topic: cross-compilation Building packages on a different platform than they will be used on 9.needs: documentation
Milestone

Comments

@vcunat
Copy link
Member

vcunat commented Mar 10, 2014

No description provided.

@shlevy shlevy added this to the 14.04 milestone Apr 5, 2014
@edolstra edolstra removed this from the 14.04 milestone Apr 21, 2014
@domenkozar domenkozar added this to the 14.11 milestone Oct 22, 2014
@domenkozar
Copy link
Member

Let's document that in 14.11

@domenkozar domenkozar modified the milestones: 15.05, 14.12 Apr 19, 2015
@Mathnerd314
Copy link
Contributor

How does this interact with #4855?

@domenkozar domenkozar modified the milestones: 16.03, 15.09 Nov 23, 2015
@vcunat
Copy link
Member Author

vcunat commented Nov 23, 2015

Not much, I believe, but it will be easier to document after agreeing on the new semantics, if we "want to switch it" :-)

@Profpatsch
Copy link
Member

(triage) has it been documented yet?

@domenkozar
Copy link
Member

domenkozar commented Jul 25, 2016

$ grep -iR nativeBuildInputs doc

@fpletz fpletz modified the milestones: 16.09, 16.03 Aug 1, 2016
@domenkozar domenkozar removed this from the 16.09 milestone Aug 31, 2016
@domenkozar domenkozar changed the title Document (propagated)nativeBuildInputs in nixpkgs manual Document usage and purpose of (propagated)nativeBuildInputs in nixpkgs manual Oct 9, 2016
@Profpatsch
Copy link
Member

Can someone at least write in here what it does and why we need it?

@domenkozar
Copy link
Member

It's used for determining what packages are compiled natively when cross compiling. Everything else in buildInputs is cross compiled.

@domenkozar
Copy link
Member

see pkgs/stdenv/generic/setup.sh:299

@domenkozar
Copy link
Member

So really, crossEnvHook is called for buildInputs and envHook is called for nativeBuildInputs.

@domenkozar
Copy link
Member

I feel your pain @Profpatsch and thanks for every line of docs you write :)

@vcunat
Copy link
Member Author

vcunat commented Oct 12, 2016

Yes, the "native" ones are inputs meant to be executed on the build machine and the regular ones are meant to be executed on the host machines (using GNU terminology).

@vcunat
Copy link
Member Author

vcunat commented Oct 12, 2016

Also note that there are initiatives to rename these #4855, though they haven't really gathered enough momentum.

@rasendubi rasendubi added 9.needs: documentation 6.topic: cross-compilation Building packages on a different platform than they will be used on and removed old-label: documentation labels Oct 28, 2016
Ericson2314 added a commit to obsidiansystems/nixpkgs that referenced this issue Sep 20, 2017
 - A new dependency section in the stdenv chapter
 - More information in the setup hook section of the stdenv chapter
 - Fix link destination in the cross compilation chapter

Fixes NixOS#1915---with this change I think the distinction is finally clear
enough.
bgamari pushed a commit to bgamari/nixpkgs that referenced this issue Oct 15, 2017
 - A new dependency section in the stdenv chapter
 - More information in the setup hook section of the stdenv chapter
 - Fix link destination in the cross compilation chapter

Fixes NixOS#1915---with this change I think the distinction is finally clear
enough.
ElvishJerricco pushed a commit to ElvishJerricco/nixpkgs that referenced this issue Oct 22, 2017
 - A new dependency section in the stdenv chapter
 - More information in the setup hook section of the stdenv chapter
 - Fix link destination in the cross compilation chapter

Fixes NixOS#1915---with this change I think the distinction is finally clear
enough.
@gilligan
Copy link
Contributor

https://nixos.org/nixpkgs/manual/#ssec-stdenv-attributes -- It is documented here, isn't it ? @vcunat can this be closed?

@vcunat
Copy link
Member Author

vcunat commented Oct 29, 2017

Right, thanks.

@vcunat vcunat closed this as completed Oct 29, 2017
bgamari pushed a commit to bgamari/nixpkgs that referenced this issue Nov 5, 2017
 - A new dependency section in the stdenv chapter
 - More information in the setup hook section of the stdenv chapter
 - Fix link destination in the cross compilation chapter

Fixes NixOS#1915---with this change I think the distinction is finally clear
enough.
@Ericson2314
Copy link
Member

Heh, I was leaving this open because in my yet-to-be merged PR the documentation is much improved, but oh well!

bgamari pushed a commit to bgamari/nixpkgs that referenced this issue Dec 10, 2017
 - A new dependency section in the stdenv chapter
 - More information in the setup hook section of the stdenv chapter
 - Fix link destination in the cross compilation chapter

Fixes NixOS#1915---with this change I think the distinction is finally clear
enough.
Ericson2314 added a commit to obsidiansystems/nixpkgs that referenced this issue Dec 22, 2017
 - A new dependency section in the stdenv chapter
 - More information in the setup hook section of the stdenv chapter
 - Fix link destination in the cross compilation chapter

Fixes NixOS#1915---with this change I think the distinction is finally clear
enough.
Ericson2314 added a commit to obsidiansystems/nixpkgs that referenced this issue Dec 26, 2017
 - A new dependency section in the stdenv chapter
 - More information in the setup hook section of the stdenv chapter
 - Fix link destination in the cross compilation chapter

Fixes NixOS#1915---with this change I think the distinction is finally clear
enough.
Ericson2314 added a commit to obsidiansystems/nixpkgs that referenced this issue Dec 31, 2017
This accounts for all the new dependencies and propagation logic changes
I'm about to add.

Fixes NixOS#1915---with this change I think the distinction is finally clear
enough.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: enhancement Add something new 3.skill: trivial This is trivial to complete (typically find-and-replace) 6.topic: cross-compilation Building packages on a different platform than they will be used on 9.needs: documentation
Projects
None yet
Development

No branches or pull requests