Enable rust debugging in Intellij Idea

I installed the IntelliJ idea from nixos packages, and then install the Rust plugin for development. When I want to debug my programs, the IntelliJ idea shows me an error:

Error running 'Run the-joy-of-rust': Cannot run program "/home/milad/.cache/JetBrains/IntelliJIdea2020.2/intellij-rust/lldb/bin/LLDBFrontend": error=2, No such file or directory

When I run ldd on LLDBFrontend it prints two missing libraries:

ldd LLDBFrontend 
	linux-vdso.so.1 (0x00007ffc5d6c1000)
	liblldb.so => /home/milad/.cache/JetBrains/IntelliJIdea2020.2/intellij-rust/lldb/bin/./../lib/liblldb.so (0x00007f9ad6a1c000)
	libpthread.so.0 => /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libpthread.so.0 (0x00007f9ad69fb000)
	libstdc++.so.6 => not found
	libm.so.6 => /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libm.so.6 (0x00007f9ad68ba000)
	libgcc_s.so.1 => /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libgcc_s.so.1 (0x00007f9ad68a0000)
	libc.so.6 => /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6 (0x00007f9ad66e1000)
	libpython3.6m.so.1.0 => /home/milad/.cache/JetBrains/IntelliJIdea2020.2/intellij-rust/lldb/bin/./../lib/../lib/libpython3.6m.so.1.0 (0x00007f9ad6203000)
	libdl.so.2 => /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libdl.so.2 (0x00007f9ad61fe000)
	/lib64/ld-linux-x86-64.so.2 => /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib64/ld-linux-x86-64.so.2 (0x00007f9adab2c000)
	libstdc++.so.6 => not found
	libutil.so.1 => /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libutil.so.1 (0x00007f9ad61f9000)
	librt.so.1 => /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/librt.so.1 (0x00007f9ad61ef000)

Any Idea how to fix this issue?

I’m having the same issue, did you find out how to solve it?