Trying to fix crossGNU builds (attribute `platform.kernelMajor' missing)

svn path=/nixpkgs/trunk/; revision=34239
This commit is contained in:
Lluís Batlle i Rossell 2012-05-25 08:15:41 +00:00
parent c5b6f8a374
commit c0be42fd68

View File

@ -112,7 +112,9 @@ stdenv.mkDerivation ({
] ++ stdenv.lib.optionals (cross != null) [
(if cross.withTLS then "--with-tls" else "--without-tls")
(if cross.float == "soft" then "--without-fp" else "--with-fp")
] ++ stdenv.lib.optionals (cross != null && cross.platform.kernelMajor == "2.6") [
] ++ stdenv.lib.optionals (cross != null
&& cross.platform ? kernelMajor
&& cross.platform.kernelMajor == "2.6") [
"--enable-kernel=2.6.0"
"--with-__thread"
] ++ stdenv.lib.optionals stdenv.isArm [