nixpkgs/pkgs/stdenv
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
..
generic Trying to move all stdenv cross-compiling details out of the stdenv expression, 2009-11-17 21:14:57 +00:00
linux Trying to move all stdenv cross-compiling details out of the stdenv expression, 2009-11-17 21:14:57 +00:00
mingw stuff for mingw 2009-11-13 11:58:17 +00:00
native Added empty line 2009-10-16 10:21:27 +00:00
nix * xargsFlag empty on darwin 2009-06-10 11:08:53 +00:00
adapters.nix I made the whole nixpkgs dependencies available to the cross compiler, no 2009-11-17 22:58:48 +00:00
common-path.nix * Make the nested output patch in GNU Make runtime configurable (by 2009-01-19 18:49:58 +00:00
default.nix Trying to move all stdenv cross-compiling details out of the stdenv expression, 2009-11-17 21:14:57 +00:00