nixpkgs/pkgs/build-support
Lluís Batlle i Rossell 2aba922d30 My first attempt at getting cross compilers in nixpkgs.
My idea is to provide special stdenv expressions that will contain in the path
additional cross compilers. As most expressions for programs accept a stdenv parameter, 
we could substitute this parameter with the special stdenv, which will have a
generic builder that attempts the usual "--target=..." and can additionally
have an env variable like "cross" with the target architecture set.
So, finally we could have additional expressions like this:

bashRealArm = makeOverridable (import ../shells/bash) {
    inherit fetchurl bison;
    stdenv = stdenvCross "armv5tel-unknown-linux-gnueabi";
};

Meanwhile it does not work - I still cannot get the cross-gcc to build.

I think it does not fill the previous expressions with a lot of noise, so I
think it may be a good path to follow.

I only touched some files of the current stdenv: gcc-4.3, kernel headers
2.6.28, glibc 2.9, ...

I tried to use the gcc-cross-wrapper, that may be very outdated. Maybe I will
update it, or update the gcc-wrapper expression to make it fit the cross tools,
but meanwhile I even cannot build gcc, so I have not tested the wrapper.

This new idea on cross compiling is not similar to that of the
nixpkgs/branches/cross-compilation, which mostly added bare new expressions for
anything to be cross compiled, if I understood it correctly.

I cared not to break anything of the usual stdenv in all this work.


svn path=/nixpkgs/branches/stdenv-updates/; revision=18343
2009-11-14 08:11:30 +00:00
..
buildenv revrting my accident only keeping rubygem updates and ruby libs 2009-06-30 15:58:02 +00:00
builder-defs Updating from trunk 2009-11-08 01:57:40 +00:00
checker removed all __primops from nixpkgs 2009-05-24 10:57:46 +00:00
deb-package big breaking change: renaming lib.getAttr to lib.attrByPath 2009-05-24 10:57:41 +00:00
fetchbzr Add `fetchbzr', to retrieve remote Bazaar repositories. 2008-09-26 08:57:51 +00:00
fetchcvs * Quick hack to support checkout by date. 2008-02-28 23:43:21 +00:00
fetchdarcs Added Idris and updated fetchdarcs. 2009-05-13 19:02:23 +00:00
fetchfile * "." -> "source". 2005-12-05 14:11:09 +00:00
fetchgit some fetchgit documentation 2009-11-08 03:02:10 +00:00
fetchhg commented out avrdude which is using unstable lib functions, 2007-09-04 12:45:00 +00:00
fetchmtn Reduce fetchmtn verbosity 2009-11-08 22:30:38 +00:00
fetchsvn Change fetchsvn as well as nix-prefect-svn to use the repository name and 2009-10-06 13:36:52 +00:00
fetchsvnssh undo 2008-07-06 15:46:10 +00:00
fetchurl * Postgres updated to 8.3.8 and 8.4.1. Dropped the "with args" and 2009-10-14 14:38:16 +00:00
gcc-cross-wrapper My first attempt at getting cross compilers in nixpkgs. 2009-11-14 08:11:30 +00:00
gcc-upc-wrapper Add GCC-UPC, a compiler for the UPC distributed shared memory language. 2008-03-04 16:20:11 +00:00
gcc-wrapper Porting changes from stdenv-updates into this branch. 2009-11-08 00:32:12 +00:00
kernel Making the 'makeInitrd' expression use "platform" 2009-11-08 18:47:55 +00:00
make-desktopitem Added desktop file generation function and desktop item for firefox 2009-05-10 12:03:53 +00:00
make-symlinks * "." -> "source". 2005-12-05 14:11:09 +00:00
make-wrapper * Firefox wrapper: put gecko-mediaplayer and mplayer at the start of 2009-07-16 11:22:37 +00:00
mono-dll-fixer * Remove references to substitute.sh. 2006-12-27 18:17:53 +00:00
native-darwin-cctools-wrapper * Changed version of gcc to 4.0.1 - 5484 on darwin 2009-06-21 18:37:54 +00:00
nuke-references * Use the sh from klibc in the bootstrap. It's a lot smaller than 2009-01-29 17:48:45 +00:00
release * Allow additional Deb provides/requires to be specified. 2009-11-05 14:40:25 +00:00
src-only A helper to get the source some package is built from. 2008-10-01 15:57:22 +00:00
substitute * Allow post/pre-install hooks. 2008-02-12 08:42:33 +00:00
upstream-updater Roll back SBCL 2009-11-06 10:13:00 +00:00
vm * Added Ubuntu 9.10 ("Karmic Koala"). 2009-11-05 14:49:17 +00:00