probably be done using the makeStaticBinaries stdenv adapter. svn path=/nixpkgs/trunk/; revision=17595