Make RustRover work with Rust from Nixpkgs
jetbrains nix rust
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: use nix shell env when building

WeetHet 7e5cc21f ab8af917

+5 -2
+5 -2
default.nix
··· 24 24 sysrootDir = "${ideaDir}/sysroot"; 25 25 rustupHome = "${ideaDir}/rustup-home"; 26 26 fingerprintFile = "${ideaDir}/environment.fingerprint"; 27 + envFile = "${ideaDir}/shell-env"; 27 28 toolchainName = "nix-toolchain"; 28 29 29 30 tools = buildEnv { ··· 90 91 ''; 91 92 92 93 rustupWrapper = writeShellScriptBin "rustup" '' 93 - export RUSTUP_HOME="${rustupHome}" 94 - export PATH="${ideaDir}"/bin:$PATH 94 + if [ -f "${envFile}" ]; then 95 + set -a && source "${envFile}" && set +a 96 + fi 95 97 if [ "$1" = "component" ] && [ "$2" = "list" ]; then 96 98 shift 2 97 99 exec ${./list-components.sh} ${sysrootDir} "$@" ··· 128 130 env.RUSTUP_HOME = rustupHome; 129 131 shellHook = (args.shellHook or "") + '' 130 132 ${lib.getExe createEnvironment} 133 + export -p | grep -vE '^declare -x (TMPDIR|TMP|TEMP|TEMPDIR)=' > "${envFile}" 131 134 ''; 132 135 } 133 136 )