rls: update preBuild for changes in buildRustPackage

preBuild is now run before changing to buildAndTestSubdir, so use full
path to tests/client.rs in preBuild.
This commit is contained in:
Daniël de Kok 2021-02-15 12:01:34 +01:00
parent 2df314c261
commit 2376921de5

View File

@ -2,7 +2,7 @@
, openssh, openssl, pkg-config, cmake, zlib, curl, libiconv
, CoreFoundation, Security }:
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage rec {
pname = "rls";
inherit (rustPlatform.rust.rustc) src version;
@ -14,7 +14,7 @@ rustPlatform.buildRustPackage {
preBuild = ''
# client tests are flaky
rm tests/client.rs
rm ${buildAndTestSubdir}/tests/client.rs
'';
# a nightly compiler is required unless we use this cheat code.