svn path=/nixpkgs/branches/stdenv-updates/; revision=9842
The main goal is to remove code duplication. Some patches lost during this reorganizing. svn path=/nixpkgs/branches/stdenv-updates/; revision=9825