I’d love to build sorbet ruby type checker locally. I want to be able to just follow its existing build process:
I do not want to create a derivation for sorbet – this is just for my local exploration.
If I just run bazel build //main:sorbet --config=dbg though, I get
/home/matklad/.bazel_binaries/2.2.0/bin_t/bazel: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
It looks like that error message is from some Bazel plugin trying to download LLVM 8? That’s probably not the right thing to do on NixOS anyway, so you should try switching to the host toolchain as in the link. If the default c++ doesn’t cut it, try mkShell.override { stdenv = llvmPackages_8.stdenv; }.
(edit: the override should work with buildFHSUserEnv as well)