| I was messing around trying to see if I could build a stdenv with gcc-arm-embedded last night. Feels like it should be possible, but I'm unsure of the exact incantation to do so. I'm starting with an embedded stdenv, then trying to override it.
The first issue that apparently cc-wrapper complain if your target platform is not linux or darwin, so I have to pass NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM. Whether this is actually unsupported or not I'm unsure.
I've tried it two ways: One using pkgs.wrapCCWith { stdenvNoCC = pkgsCross.stdenvNoCC; } and one with pkgsCross.wrapCCWith. The former got me closer, but for some reason the wrapper were not being symlinked to the bin dir. Looking at the source I tried a few things, but was unsuccessful in getting it to work. The latter fails because even though I'm trying to make a nolibc wrapper, the gcc wrapper seems to try and access libc directories at pkgs/development/compilers/gcc/common/configure-flags.nix:112:31, resulting in a cannot coerce null to string.
You can find my progress so far here: https://github.com/RossSmyth/armRepro/tree/NativeWrap https://github.com/RossSmyth/armRepro/tree/EmbedWrap
If anyone has tried this in the past, let me know if you may know how to wrangle it into shape
|