nixpkgs/pkgs/development/compilers
aszlig 9a0a85827c
gcc-4.8: Hook in cross-darwin libc and binutils.
Let's finally hook everything into the existing cross-building
infrastructure. We're using --with-sysroot instead of --with-headers
here, because the XCode SDK contains references to /usr/lib.

I've tried to patch those references, but unfortunately (at least with
install_name_tool) it isn't possible to change those refernces in stub
dylibs.

So after bugging @tpoechtrager with annoying questions (thanks again), I
think my initial approach (patching the SDK itself and/or regenerating
the dylib stubs) was way to complicated so I ended up with this
implementation.

Also, I've added a condition to binutilsCross to use cctools if the libc
is set to libSystem. This might need some cleanups someday, mainly to
figure out how to properly bridge cctools and binutils.

So, as an example on how to cross-compile GNU Hello to Darwin, you can
use something like this:

(import <nixpkgs> {
  crossSystem = {
    config = "x86_64-apple-darwin13";
    arch = "x86_64";
    libc = "libSystem";
    platform = {};
  };
}).hello.crossDrv

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:44 +01:00
..
abc * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
adobe-flex-sdk * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
Agda-executable Remove myself from the meta.maintainer field of most Haskell packages. 2013-05-11 00:36:59 +02:00
aldor Some description fixes 2013-10-05 19:36:23 +02:00
aspectj * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
ats2 Bumping ATS/Postiats version to 0.0.5. 2014-02-09 16:26:46 +01:00
avra Fix some issues in my packages reported by nixpkgs-lint. 2013-09-26 20:03:57 +00:00
bigloo fix eval 2013-06-07 11:18:33 +02:00
ccl Update Clozure Common Lisp to version 1.8 2012-10-17 11:09:44 +04:00
chicken Chicken: Fix build on OS X. 2013-11-29 11:47:00 +01:00
clean Some description fixes 2013-10-05 19:36:23 +02:00
closure Replace lib/java -> share/java 2014-01-09 13:01:38 +01:00
cmucl Remove support for the obsolete powerpc-darwin and i686-darwin platforms 2012-11-29 14:10:49 +01:00
cudatoolkit cuda: install the SDK using multiple-outputs support 2014-01-29 15:48:55 +01:00
dev86 Apply makeOverridable to stdenv 2014-02-05 19:18:33 +01:00
dmd dmd: Add (D language compiler). 2014-01-11 19:08:40 +01:00
ecl ECL update 2013-06-04 11:30:32 +04:00
edk2 edk2/OVMF: Update 2014-02-03 18:32:21 -05:00
elm haskell-Elm: update to version 0.11 2014-01-26 00:02:33 +01:00
epic Remove myself from the meta.maintainer field of most Haskell packages. 2013-05-11 00:36:59 +02:00
eql EQL: update to latest snapshot 2012-12-13 15:53:24 +04:00
flapjax Update flapjax compiler to the latest release, version 2.1 2011-03-11 16:49:56 +00:00
fpc gktspell: version bump to 2.0.16 because the old one has disappeared 2013-07-14 03:09:34 +03:00
fsharp Fix license 2012-04-12 11:57:43 +00:00
gambit Update Gambit 2011-04-13 06:31:45 +00:00
gcc gcc-4.8: Hook in cross-darwin libc and binutils. 2014-03-12 10:00:44 +01:00
gcl Update GCL source to latest release 2014-02-02 21:36:22 +04:00
ghc ghc: Fix building on Darwin 2014-01-30 13:45:48 +01:00
gnatboot Remove unnecessary parentheses around if conditions 2012-12-28 19:54:15 +01:00
go go: removeGodocExternals no longer needed 2013-12-23 10:24:32 +01:00
gprolog gprolog: patch hard-coded path to the temporary file /tmp/make.log 2014-01-21 20:07:26 +01:00
gwt More description fixes 2013-10-06 12:01:38 +02:00
gwydion-dylan * Reverted r6713, r6711, r4623, r3660, r2237. There rewrote fetchurl 2007-08-24 12:32:36 +00:00
haxe Revert "haxe: Use ignoreExternals and fix build." 2013-05-25 19:01:45 +02:00
hugs Add package versions to some of the packages or fix existing ones to conform to nixpkgs conventions. 2013-06-07 03:15:45 +03:00
iasl iasl: Fix build 2013-01-28 17:19:01 +01:00
idris haskell-idris: update to version 0.9.11.2 2014-02-13 10:57:43 +01:00
ikarus Fix ikarus download url (ikarus-scheme.org is down) 2012-06-25 15:34:05 +03:00
jdk Fix tarball 2014-01-22 15:54:40 -05:00
jhc jhc: enable Hydra build on Linux 2013-03-11 10:47:21 +01:00
jikes * Rewrite all the SourceForge URLs to mirror://sourceforge/. 2007-08-27 13:01:33 +00:00
julia Update Julia 2013-10-14 11:55:59 +04:00
lessc New package: lessc, version 1.4.0 2013-07-01 15:39:39 +02:00
llvm llvm: remove duplicate ncurses buildInput 2014-02-06 10:01:13 +01:00
mcpp mcpp: Add package 2014-01-30 21:56:17 -06:00
mentor sourcery-codebench: fix installation of manpages 2013-05-29 21:58:29 +02:00
meta-environment/meta-build-env removed metaBuildEnvTrunk, not necessary any more 2009-04-07 13:57:26 +00:00
mit-scheme Merge remote-tracking branch 'origin/master' into stdenv-updates 2013-01-22 23:23:53 +01:00
mlton mlton: fix build with latest version. 2014-02-03 23:30:18 +01:00
mono Added keepass password manager. Updated mono DLLMap to allow mono to run WinForms applications (keepass). 2013-06-09 23:17:09 +02:00
mozart Added mozart system (compiles, but untested). 2009-12-29 14:57:01 +00:00
nasm nasm: update from 2.10 to 2.11.01 2014-02-24 22:04:40 +01:00
neko neko: Update to new upstream version 2.0.0. 2013-03-27 00:26:55 +01:00
nvidia-cg-toolkit svn merge ^/nixpkgs/trunk 2012-02-25 19:57:34 +00:00
ocaml Fix some "meta.licenses" attributes 2014-01-25 03:04:46 +01:00
opa Remove some oversized packages from the channel 2013-01-17 22:34:08 +01:00
opencxx gwt: Remove obsolete version 2013-01-28 18:31:17 +01:00
openjdk openjdk: Hackery to ensure that tools.jar is found 2014-01-25 03:04:46 +01:00
openjdk-darwin openjdk-darwin: Behave the same as openjdk-linux 2014-01-28 12:10:27 +01:00
orc orc: update from 0.4.17 to 0.4.18 2013-12-21 02:28:25 +02:00
pakcs pakcs: advance version to 1.11.3, which is compatible with SWI Prolog 6.6 2014-02-05 23:06:51 +01:00
path64 * Get rid of the ugly `useFromStdenv' hack in all-packages.nix. 2010-08-06 10:34:34 +00:00
polyml PolyML expression: Factorize version number in a separate variable 2014-01-15 15:58:27 +01:00
qcmm nixos.org/tarballs -> tarballs.nixos.org 2013-06-25 14:12:16 +02:00
qi * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
rdmd rdmd: Add (D language compiler helper). 2014-01-11 19:08:40 +01:00
roadsend * Fix some more "args: with args". 2010-07-30 14:47:23 +00:00
rust rust: fixed i686 build 2014-01-22 19:29:20 +01:00
sbcl Update SBCL to 1.1.14 2013-12-30 02:30:55 +04:00
scala scala: add expression for scala 2.10.x branch. 2013-11-11 12:11:00 +01:00
sdcc Whitespace fixes in package expressions I maintain 2014-01-02 17:58:08 +01:00
smlnj Add smlnj-110.76 2013-10-21 21:46:55 +03:00
stalin unmaintain several packages 2013-08-16 23:45:01 +02:00
strategoxt strategoxt.java-front: fix version to match tarball 2013-07-14 02:08:54 +03:00
swi-prolog swi-prolog: update to version 6.6.1 2014-01-13 17:10:11 +01:00
tinycc unmaintain several packages 2013-08-16 23:45:01 +02:00
uhc Back-port Haskell-related improvements from stdenv-updates. 2013-10-27 10:09:36 +01:00
urweb More description fixes 2013-10-06 12:01:38 +02:00
vala vala: Update to 0.23.2 2014-02-11 23:35:00 +08:00
visual-c++ * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
vs90wrapper * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
webdsl Change which corrected a failing build of webdsl on a 64 bit Linux. 2011-04-08 06:20:34 +00:00
yap add tabling to yap 2013-10-05 20:59:34 +02:00
yasm xbmc: 12.2 -> 12.3 2013-12-29 17:53:40 +01:00