@@ -20,6 +20,11 @@ rustPlatform.buildRustPackage {
2020 # a nightly compiler is required unless we use this cheat code.
2121 RUSTC_BOOTSTRAP=1;
2222
23+ # As of rustc 1.45.0, these env vars are required to build rls
24+ # (due to https://github.com/rust-lang/rust/pull/72001)
25+ CFG_RELEASE = "${rustPlatform.rust.rustc.version}-nightly";
26+ CFG_RELEASE_CHANNEL = "nightly";
27+
2328 # rls-rustc links to rustc_private crates
2429 CARGO_BUILD_RUSTFLAGS = if stdenv.isDarwin then "-C rpath" else null;
2530