nixpkgs/pkgs
Lluís Batlle i Rossell 11aa65c28a Simplified much more the expressions for cross building and multiplatform.
I introduce the new nixpkgs parameter "platform", defaulting to "pc",
which was before defined as an attribute of nixpkgs.

I made the crossSystem nixpkgs attribute set parameter contain its own 'platform'.

This allows cross-building a kernel for a given crossSystem.platform in a non-PC
platform.

The actual native platform can be taken from stdenv.platform, and this way we also
avoid the constant passing of 'platform' to packages for platform-dependant builds
(kernel, initrd, ...).

I will update nixos accordingly to these changes, for non-PC platforms to work.

I think we are gaining on flexibility and clearness. I could cross build succesfully
an ultrasparc kernel and a mipsel kernel on PC. But since this change, I should be able
to do this also in non-PC.

Before this change, there was no possibility of distinguishing the "target platform" or
the "native build platform" when cross building, being the single "platform" attribute
always interpreted as target platform.

The platform is a quite relevant attribute set, as it determines the linuxHeaders used
(in the case, by now the only one supported, of linux targets).

The platform attributes are quite linux centric still. Let's hope for more generality to come.

svn path=/nixpkgs/trunk/; revision=20273
2010-02-27 17:35:47 +00:00
..
applications Fix Chromium 2010-02-25 13:22:51 +00:00
build-support Simplified much more the expressions for cross building and multiplatform. 2010-02-27 17:35:47 +00:00
configs/etc d'oh, don't actually gzip it 2006-03-08 19:25:44 +00:00
data Find some mirror for ArkPandora 2010-02-21 07:20:26 +00:00
desktops Making digikam build with kdeedu, to get the marble widget working to geolocate photos. 2010-02-26 10:41:53 +00:00
development Adding a new special attribute for mkDerivation: crossAttrs. It sits next to 2010-02-27 17:35:42 +00:00
games Fix function naming conflict in gnuchess 2010-02-21 08:15:14 +00:00
lib Added library general public license (LGPL 2.0). Although LGPL 2.1 is almost the same, I want to be precise 2010-02-25 15:44:28 +00:00
misc Roll back the changes to TeXLive. I failed to make Context work, and these changes made the situation worse 2010-02-23 19:14:31 +00:00
os-specific Simplified much more the expressions for cross building and multiplatform. 2010-02-27 17:35:47 +00:00
servers * Build the Zabbix agent on other platforms. 2010-02-23 12:17:23 +00:00
shells * Sync with the trunk. 2010-02-03 14:23:43 +00:00
stdenv Adding a new special attribute for mkDerivation: crossAttrs. It sits next to 2010-02-27 17:35:42 +00:00
test Add a new way to handle option sets. 2008-08-05 17:16:35 +00:00
tools * nixpkgs: added webalizer 2010-02-25 13:30:34 +00:00
top-level Simplified much more the expressions for cross building and multiplatform. 2010-02-27 17:35:47 +00:00