nixpkgs/pkgs/stdenv/generic
Tuomas Tynkkynen ce56c99edc mkDerivation: Don't pass buildInputs to stdenv builder in nativeBuildInputs
When not cross compiling, nativeBuildInputs and buildInputs have
identical behaviour. Currently that is implemented by having
mkDerivation do a concatenation of those variables in Nix code and pass
that to the builder via the nativeBuildInputs attribute.

However, that has some annoying side effects, like `foo.buildInputs`
evaluating to `[ ]` even if buildInputs were specified in the nix
expression for foo.

Instead, pass buildInputs and nativeBuildInputs in separate variables as
usual, and move the logic of cross compilation vs. native compilation to
the stdenv builder script. This is probably a tiny bit uglier but
fixes the previous problem.

Issue #4855.
2017-03-02 03:26:48 +02:00
..
builder.sh stdenv: Statically include the default build inputs 2014-11-06 12:10:28 +01:00
default-builder.sh * "." -> "source". 2005-12-05 14:11:09 +00:00
default.nix mkDerivation: Don't pass buildInputs to stdenv builder in nativeBuildInputs 2017-03-02 03:26:48 +02:00
setup.sh mkDerivation: Don't pass buildInputs to stdenv builder in nativeBuildInputs 2017-03-02 03:26:48 +02:00