rustracer: 2.0.14 -> 2.1.22

This commit is contained in:
arcnmx
2019-07-29 22:10:12 -07:00
parent ab82403038
commit 530e6004ef
3 changed files with 25 additions and 46 deletions
+25 -14
View File
@@ -2,30 +2,41 @@
rustPlatform.buildRustPackage rec {
name = "racer-${version}";
version = "2.0.14";
version = "2.1.22";
src = fetchFromGitHub {
owner = "racer-rust";
repo = "racer";
rev = version;
sha256 = "0kgax74qa09axq7b175ph3psprgidwgsml83wm1qwdq16gpxiaif";
rev = "v${version}";
sha256 = "1n808h4jqxkvpjwmj8jgi4y5is5zvr8vn42mwb3yi13mix32cysa";
};
cargoSha256 = "119xfkglpfq26bz411rjj31i088vr0847p571cxph5v3dfxbgz4y";
cargoSha256 = "0njaa9vk2i9g1c6sq20b7ls97nl532rfv3is7d8dwz51nrwk6jxs";
buildInputs = [ makeWrapper ];
preCheck = ''
export RUST_SRC_PATH="${rustPlatform.rustcSrc}"
# a nightly compiler is required unless we use this cheat code.
RUSTC_BOOTSTRAP=1;
RUST_SRC_PATH = rustPlatform.rustcSrc;
postInstall = ''
wrapProgram $out/bin/racer --set-default RUST_SRC_PATH $rustcSrc
'';
checkPhase = ''
cargo test -- \
--skip nameres::test_do_file_search_std \
--skip util::test_get_rust_src_path_rustup_ok \
--skip util::test_get_rust_src_path_not_rust_source_tree \
--skip extern --skip completes_pub_fn --skip find_crate_doc \
--skip follows_use_local_package --skip follows_use_for_reexport \
--skip follows_rand_crate --skip get_completion_in_example_dir
'';
doInstallCheck = true;
installCheckPhase = ''
$out/bin/racer --version
'';
patches = [
(substituteAll {
src = ./rust-src.patch;
inherit (rustPlatform) rustcSrc;
})
./ignore-tests.patch
];
doCheck = true;
meta = with stdenv.lib; {
description = "A utility intended to provide Rust code completion for editors and IDEs";