nixpkgs/pkgs/development
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
..
arduino
compilers gcc-4.8: Hook in cross-darwin libc and binutils. 2014-03-12 10:00:44 +01:00
eclipse
guile-modules
interpreters add python 3.4.0rc2 2014-03-03 14:21:28 +01:00
libraries haskell-wizards: add version 1.0.1 2014-03-03 22:12:28 +01:00
lisp-modules preferLocalBuild: set to true for wrappers and fetchers 2014-02-10 21:04:17 +01:00
misc fixup previous commit: do the change to attribute 2014-01-31 18:51:10 +01:00
mobile Add new package "xpwn" from @dborca's fork. 2014-03-12 10:00:43 +01:00
ocaml-modules Fix some "meta.licenses" attributes 2014-01-25 03:04:46 +01:00
perl-modules perl.Finance::Quote 1.19 (close #1759) 2014-02-16 18:06:07 +01:00
python-modules pylint: update from 0.26.0 to 0.28.0 2014-02-24 22:04:40 +01:00
qtcreator
r-modules/generic
ruby-modules
tools scons: update from 2.3.0 to 2.3.1 2014-03-03 11:10:26 +01:00
web nodejs: update from 0.10.25 to 0.10.26 2014-02-27 18:53:48 +02:00