NixOS/nixpkgs — pull request #2788 by jwiegley (2014-05-29 07:45:35+00:00)
Title: Change stdenv on darwin to not set NIX_ENFORCE_PURITY

This fixes #2502, but it should only be necessary when clangStdenv is being used. The regular stdenv on darwin does not need this patch; I'm just not sure of the best way to bring that decision down to this point. Also, I'm unclear as to which hordes of evil I'm inviting to the party by unsetting this.

See the notes in #2208 for the error being raised in ld-wrapper.sh which prompted me to make this change. With it, I can now build derivations that require clangStdenv, like emacs24 and SDL.