This reverts commit 0b49d5dd68 #55500. I'm sorry, I'm unable to fix the build quickly in other way than atop the older version. Certainly feel free to improve the approach.
0b49d5dd68
svn path=/nixpkgs/trunk/; revision=23017