nixpkgs-suyu/pkgs/development
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
..
compilers Making the definition of the cross compiling target an attribute set. 2009-11-16 23:21:13 +00:00
eclipse ECJ 3.5.1. 2009-11-05 14:36:45 +00:00
guile-modules Add GNU guile-gnome. 2009-10-05 22:21:50 +00:00
interpreters Porting changes from stdenv-updates into this branch. 2009-11-08 00:32:12 +00:00
libraries I made the whole nixpkgs dependencies available to the cross compiler, no 2009-11-17 22:58:48 +00:00
misc hg2git has been put into repo fast-export. make it work again 2009-10-27 17:46:37 +00:00
perl-modules Making perl DB_File follow the lib/perl5/site_perl convention for the *.pm files, 2009-10-15 22:08:23 +00:00
python-modules Upgraded pycups to 1.9.46 2009-10-02 11:13:03 +00:00
ruby-modules
tools Making the definition of the cross compiling target an attribute set. 2009-11-16 23:21:13 +00:00