diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2018-09-04 13:06:45 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2018-09-04 13:06:45 +0200 |
commit | 1428d00aa4a58095ba510145eb25233591ac6051 (patch) | |
tree | b4f73764acaeb3c21a70a9c57cca55e59681515c /pkgs/stdenv | |
parent | e3ee9c098a64deb30e8d9edb180e613b93046f45 (diff) | |
parent | 6767396e380b39128e5decf30d6cb87481a75490 (diff) | |
download | nixlib-1428d00aa4a58095ba510145eb25233591ac6051.tar nixlib-1428d00aa4a58095ba510145eb25233591ac6051.tar.gz nixlib-1428d00aa4a58095ba510145eb25233591ac6051.tar.bz2 nixlib-1428d00aa4a58095ba510145eb25233591ac6051.tar.lz nixlib-1428d00aa4a58095ba510145eb25233591ac6051.tar.xz nixlib-1428d00aa4a58095ba510145eb25233591ac6051.tar.zst nixlib-1428d00aa4a58095ba510145eb25233591ac6051.zip |
Merge branch 'master' into staging-next
Hydra: ?compare=1477053
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r-- | pkgs/stdenv/generic/make-derivation.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix index 8af6d0e04008..e1ce3200e8c9 100644 --- a/pkgs/stdenv/generic/make-derivation.nix +++ b/pkgs/stdenv/generic/make-derivation.nix @@ -187,7 +187,15 @@ rec { builder = attrs.realBuilder or stdenv.shell; args = attrs.args or ["-e" (attrs.builder or ./default-builder.sh)]; inherit stdenv; - inherit (stdenv.hostPlatform) system; + + # The `system` attribute of a derivation has special meaning to Nix. + # Derivations set it to choose what sort of machine could be used to + # execute the build, The build platform entirely determines this, + # indeed more finely than Nix knows or cares about. The `system` + # attribute of `buildPlatfom` matches Nix's degree of specificity. + # exactly. + inherit (stdenv.buildPlatform) system; + userHook = config.stdenv.userHook or null; __ignoreNulls = true; |