Just add rustc.llvmPackages.llvm which will contain all the tools also contained in llvm-tools-preview (which is “llvm-tools-preview is a rustup component that contains some LLVM tools”) matching the LLVM version used by rust.
Note that in general I would not recommend installing development utilities globally. Usually it makes more sense to create granular dev environments per project using shell.nix etc.
Thank you very much. That helped partialy. Now its complaining that it needs llvm-profdata, and I cant find a NixOS package for it either. More help is needed
Note that in general I would not recommend installing development utilities globally. Usually it makes more sense to create granular dev environments per project using shell.nix etc.
Yes yes, off course. I am aware of that. I am just experimenting with NixOS after rediscovering it a few weeks a go.
I could not find what is the problem with the missing llvm-profdata. For future people who see this, I’ve opened a separate topic on this: Llvm-profdata, grcov and Rust code coverage.