git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #93849 from symphorien/rls-1.45

rls: fix build

commitb150f71be9f43e5891d6925ce2302fbbdaf2cc31 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 25 Jul 2020, 22:37 (6 years ago) parent5475b842885306
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