NixOS/nixpkgs — pull request #3760 by errge (2014-08-24 15:19:38+00:00)
Title: Stdenv stages refactor

This is a second try for the linux stdenv refactoring.

Previously I didn't manage to get any reviews. probably because the commit was too large to review. It also changed the output and derivation hashes, therefore generating a mass rebuild.

This time, I ask for review with the following info kept in mind:
- none of these commits change the output path or the derivation path of 32 or 64-bit stdenvLinux,
- to be safe, I'm still requesting this merge to the staging branch,
- don't review the whole merge request as a whole, but go through the six commits one-by-one, then the commits are quite small and it's easy to follow what's happening,
- the final file is 30 lines shorter and more logical, easier to read than the original while doing the same task.

After we're done with this review, I'll post other improvements (like getting rid of triple zlib's, or having a glibc that is compiled with recent gcc, not an ancient one, or having the gcc_s issue fixed correctly) in another, separate pull requests.

I'd really appreciate to get some kind of a review this time, thanks! :)