`nix` fails to install packages that require building from behind a proxy

The steps to reproduce the problem is here.

I was wondering if I am the only one stuck with this situation.
If it is not a bug, how do can I build packages that requires to download files from behind a proxy?