Propagating the 'platform' stdenv attribute properly on stdenvLinux,

so it can be used in places like the linuxHeaders expression.

svn path=/nixpkgs/branches/stdenv-updates/; revision=23343
This commit is contained in:
Lluís Batlle i Rossell
2010-08-21 21:08:57 +00:00
parent 9a1e29ecdf
commit dc19818cc7
3 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
# system, e.g., cygwin and mingw builds on i686-cygwin. Most people
# can ignore it.
{system, stdenvType ? system, allPackages ? import ../..}:
{system, stdenvType ? system, allPackages ? import ../.., platform}:
assert system != "i686-cygwin" -> system == stdenvType;
@@ -41,7 +41,7 @@ rec {
# Linux standard environment.
stdenvLinux = (import ./linux {inherit system allPackages;}).stdenvLinux;
stdenvLinux = (import ./linux {inherit system allPackages platform;}).stdenvLinux;
# MinGW/MSYS standard environment.