Inject 3rd-party cross-toolchain

Hi! Say, I have specific binary toolchain for specific platform (not linux, not darwin) but for common architecture (e.g.) x86.

I could pathcElf it and run compilers and tools. I want to make an overlay with this toolchain to get pkgs from which I could run e.g. stdenv.mkDerivation { ... } which will use compilers from my toolchain.

According to this post I need to build stdenv, gcc, etc. by my hand (partly copy-pasting from nixpkgs) within overlay. Is there any more handy option?