[Nix-dev] gcc has stopped working on Mac OS X Mavericks

John Wiegley johnw at newartisans.com
Fri Oct 24 09:56:40 CEST 2014


>>>>> Michael Sperber <sperber at deinprogramm.de> writes:

> export SDKROOT=macosx10.9

> Unfortunately, it seems --pure (and nix-env generally) then *unsets* that
> environment variable again.  Any way I can make Nix have its stick around?

I hand-edited pkgs/stdenv/nix/default.nix to have this line in it:

    export MACOSX_DEPLOYMENT_TARGET=10.9

The SDKROOT is then set from this.  Maybe that would help, assuming you have
your own nixpkgs clone?

John


More information about the nix-dev mailing list