git.iko.soy/typeable/nixpkgs
on master help sign in
rls: fix build

fix copied from rustfmt

commit2885306df06e135c4007ec1158742a9c53cdcbf1 authorSymphorien Gibol <symphorien+git@xlumurb.eu> dateSat 25 Jul 2020, 12:00 (6 years ago) parentf1bc042
1 file changed+5
pkgs/development/compilers/rust/rls/default.nix+5
pkgs/development/compilers/rust/rls/default.nix+5
@@ -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