nixpkgs/pkgs
Lluís Batlle i Rossell e7c8e8da4f I made the whole nixpkgs dependencies available to the cross compiler, no
needing to keep a new tree of expressions apart for the expressions to get
cross-compiled.

I changed the whole way of using cross compilation with nixpkgs, which before
was done through a simple adapter.

Now the adapter became complex, and I've tried to avoid the most obvious
recursivities. For example, the fetchurl expression should
never be cross-compiled, as the gmp, mpfr, and some others, like
some ncurses, perl, ... I made overrided copies of those necessary as
perlNoCross, ncursesNoCross, as stdenvNoCross, keeping in mind that
the stdenv (capable of cross compilation) is built upon stdenvNoCross using
an adapter.

So, to cross compile, instead of building using "nixpkgs/default.nix",
you should build with your
own "myarchiteture.nix", which should have contents like these, for example:

import /etc/nixos/nixpkgs/default.nix
{
    crossSystem = {
        config = "armv5tel-unknown-linux-gnueabi";
        bigEndian = false;
        arch = "arm";
        float = "soft";
    };
}


svn path=/nixpkgs/branches/stdenv-updates/; revision=18398
2009-11-17 22:58:48 +00:00
..
applications Updating from trunk. 2009-11-13 19:19:34 +00:00
build-support Trying to move all stdenv cross-compiling details out of the stdenv expression, 2009-11-17 21:14:57 +00:00
configs/etc
data pkgs/data/sgml+xml/schemas/xml-dtd/docbook/4.5.nix: added docbook 4.5 XML DTD 2009-11-03 15:57:27 +00:00
desktops Fix gnome-doc-utils 2009-11-07 09:34:12 +00:00
development I made the whole nixpkgs dependencies available to the cross compiler, no 2009-11-17 22:58:48 +00:00
games Fixing the neverball expression: it relied on having a /homeless-shelter 2009-11-08 22:35:19 +00:00
lib * Fix typo and clarify why you should not use "mkFixStrictness" on top of 2009-11-07 16:24:11 +00:00
misc Adding uboot cross compilation. I had to adapt the package a bit, because it 2009-11-15 22:56:06 +00:00
os-specific Making the definition of the cross compiling target an attribute set. 2009-11-16 23:21:13 +00:00
servers Upgraded JBoss to 5.1.0 2009-11-11 15:52:26 +00:00
shells Porting changes from stdenv-updates into this branch. 2009-11-08 00:32:12 +00:00
stdenv I made the whole nixpkgs dependencies available to the cross compiler, no 2009-11-17 22:58:48 +00:00
test Add a new way to handle option sets. 2008-08-05 17:16:35 +00:00
tools Updating from trunk. 2009-11-13 19:19:34 +00:00
top-level I made the whole nixpkgs dependencies available to the cross compiler, no 2009-11-17 22:58:48 +00:00