1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
nixpkgs/pkgs/top-level
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
..
all-packages.nix Simplified much more the expressions for cross building and multiplatform. 2010-02-27 17:35:47 +00:00
guile-2-test.nix Add GNU TeXmacs. 2010-02-13 19:22:16 +00:00
haskell-packages.nix applications/misc/xmobar: Added UTF8 and XFT support. 2010-02-21 15:49:44 +00:00
make-tarball.nix * Get rid of the ".svn" directories that Hydra includes nowadays. 2010-02-02 15:02:29 +00:00
mingw.nix * Remove execute permission. 2006-09-11 13:37:46 +00:00
perl-packages.nix Update Perl MakeMaker. Newer version at least can be built... 2010-02-21 09:16:04 +00:00
platforms.nix Simplified much more the expressions for cross building and multiplatform. 2010-02-27 17:35:47 +00:00
python-packages.nix * Added `boto', a Python interface to AWS. 2010-02-10 18:10:22 +00:00
release.nix After some testing with an ultrasparc cross-compiler: 2010-02-27 00:52:48 +00:00