nixpkgs/pkgs/top-level
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
..
all-packages.nix gcc-4.8: Hook in cross-darwin libc and binutils. 2014-03-12 10:00:44 +01:00
guile-2-test.nix
haskell-defaults.nix haskell-terminfo: update to version 0.4.0.0 2014-01-15 16:38:18 +01:00
haskell-packages.nix haskell-wizards: add version 1.0.1 2014-03-03 22:12:28 +01:00
make-tarball.nix Fix updating of the tarball mirror 2014-02-19 13:58:42 +01:00
mingw.nix
node-packages-generated.nix Add stackdriver-statsd-backend/statsd-librato-backend node packages and update existing node packages. 2014-02-24 12:02:21 +01:00
node-packages.json Add stackdriver-statsd-backend/statsd-librato-backend node packages and update existing node packages. 2014-02-24 12:02:21 +01:00
node-packages.nix
perl-packages.nix perlPackages.ExceptionClass: update from 1.30 to 1.37 2014-02-18 04:22:27 +02:00
platforms.nix
python-packages-generated.nix
python-packages.json
python-packages.nix Merge pull request #1872 from wkennington/cache.python 2014-03-03 19:32:30 +01:00
r-packages.nix
release-cross.nix
release-lib.nix
release-python.nix Merge master into stdenv-updates 2014-01-20 19:39:28 +01:00
release-small.nix release: fix automake evaluation, broken in 5888f27c 2014-02-02 12:09:58 +01:00
release.nix unstable job: don't depend on glib-tested yet (fails) 2014-02-22 10:38:13 +01:00