Mostly what I merged from @lovek323. Such errors can be easily checked by nix-env -f . -qa \* --meta --xml --drv-path --show-trace >/dev/null
svn path=/nixpkgs/trunk/; revision=33233