1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/development/compilers
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
..
abc * Remove calls to fail(). 2008-04-23 07:34:20 +00:00
adobe-flex-sdk adding open source adobe flex sdk 2009-04-06 13:07:21 +00:00
aspectj * Reverted r6713, r6711, r4623, r3660, r2237. There rewrote fetchurl 2007-08-24 12:32:36 +00:00
bigloo Bigloo 3.2a. 2009-01-11 22:49:44 +00:00
dev86 Stole a patch from the cross-lfs project in order to compile dev86 on x86-64 linux 2009-04-15 09:36:17 +00:00
ehc Nix expression for EHC 2008-03-18 13:44:27 +00:00
flapjax - fetchdarcs supports now partial 2008-03-06 02:46:29 +00:00
fpc Changing CLisp, FPC to new style of adding to hydra 2009-08-25 09:00:19 +00:00
gcc-2.95 * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
gcc-3.3 * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
gcc-3.4 * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
gcc-4.0 * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
gcc-4.1 * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
gcc-4.2 * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
gcc-4.3 My first attempt at getting cross compilers in nixpkgs. 2009-11-14 08:11:30 +00:00
gcc-4.4 GCJ 4.4: Fix missing <X11/extensions/XInput.h> by adding `libXi'. 2009-11-05 21:43:00 +00:00
gcc-apple * gcc-apple fixes for darwin 2009-07-24 12:28:39 +00:00
gcc-upc-4.0 * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
gcl Comment out gcl as broken 2009-11-06 09:44:03 +00:00
ghc fix ghc-get-packages 2009-11-12 07:11:03 +00:00
gprolog Add GNU Prolog. 2009-02-19 13:32:07 +00:00
gwt - Upgraded GWT to 1.7.1 2009-10-19 13:14:23 +00:00
gwydion-dylan * Reverted r6713, r6711, r4623, r3660, r2237. There rewrote fetchurl 2007-08-24 12:32:36 +00:00
helium * "." -> "source". 2005-12-05 14:11:09 +00:00
hugs replacing applyAndFun by lib.defaultOverridableDelayableArgs 2009-03-06 23:21:28 +00:00
iasl Fixing the name of iasl. 2009-04-16 07:19:31 +00:00
idris Added Idris and updated fetchdarcs. 2009-05-13 19:02:23 +00:00
ikarus Added Ikarus Scheme 2008-05-06 07:01:50 +00:00
jdk Updating sun java jdk. I expected some problems to be solved, but they work the same 2009-10-13 21:45:20 +00:00
jikes * Rewrite all the SourceForge URLs to mirror://sourceforge/. 2007-08-27 13:01:33 +00:00
llvm FullDepEntry -> fullDepEntry, PackEntry -> packEntry 2009-05-19 23:25:58 +00:00
meta-environment/meta-build-env removed metaBuildEnvTrunk, not necessary any more 2009-04-07 13:57:26 +00:00
mono * added -lgcc_s to NIX_LDFLAGS of mono 2009-10-19 11:26:13 +00:00
nasm svn path=/nixpkgs/trunk/; revision=15605 2009-05-14 14:43:50 +00:00
ocaml Porting changes from stdenv-updates into this branch. 2009-11-08 00:32:12 +00:00
opencxx * Rewrite all the SourceForge URLs to mirror://sourceforge/. 2007-08-27 13:01:33 +00:00
openjdk-darwin added openjdk for darwin (binaries) for testing 2009-10-02 12:12:23 +00:00
qcmm * Get rid of all references to nix.cs.uu.nl. 2008-11-14 16:57:19 +00:00
qi FullDepEntry -> fullDepEntry, PackEntry -> packEntry 2009-05-19 23:25:58 +00:00
roadsend replacing applyAndFun by lib.defaultOverridableDelayableArgs 2009-03-06 23:21:28 +00:00
sbcl I think I rolled back to original sbcl-1.0.29 state 2009-11-06 19:27:32 +00:00
scala version update 2008-05-07 18:37:55 +00:00
stalin Add Stalin, an efficient Scheme compiler. 2008-05-29 12:10:10 +00:00
strategoxt other location for tarball 2009-11-10 13:58:22 +00:00
swi-prolog * Add swi-prolog without any options. 2008-03-06 21:53:54 +00:00
tiger * "." -> "source". 2005-12-05 14:11:09 +00:00
tinycc Try protecting FreeBSD from instntiating TinyCC 2008-11-03 19:16:21 +00:00
visual-c++ * Microsoft Windows SDK, purified. Small problem: building the SDK 2006-06-05 22:03:52 +00:00
webdsl * Improved a bunch of "name" attributes (mostly missing version 2009-10-28 14:06:56 +00:00
yap * Improved a bunch of "name" attributes (mostly missing version 2009-10-28 14:06:56 +00:00