3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/rust/racer/default.nix
Maximilian Bosch 3da886bf41
treewide: remove ma27 from the maintainer-list of a few packages
These are all packages that I stopped using and hence just create noise
in my inbox for each change affecting them and let's face it, while I
still enjoy contributing to nixpkgs, it doesn't really make sense to be
listed there if I can't do much anyways.

Each of these packages can be taken over by someone or removed if
people think that's reasonable.

Of course, if other maintainers face issues, I can answer some questions
if needed & possible.
2021-08-27 22:28:49 +02:00

49 lines
1.5 KiB
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, makeWrapper, substituteAll, Security }:
rustPlatform.buildRustPackage rec {
pname = "racer";
version = "2.1.46";
src = fetchFromGitHub {
owner = "racer-rust";
repo = "racer";
rev = "v${version}";
sha256 = "sha256-7h1w5Yyt5VN6+pYuTTbdM1Nrd8aDEhPLusxuIsdS+mQ=";
};
cargoSha256 = "sha256-fllhB+so6H36b+joW0l+NBtz3PefOKdj6C8qKQPuJpk=";
nativeBuildInputs = [ makeWrapper ];
buildInputs = lib.optional stdenv.isDarwin Security;
# a nightly compiler is required unless we use this cheat code.
RUSTC_BOOTSTRAP = 1;
RUST_SRC_PATH = rustPlatform.rustLibSrc;
postInstall = ''
wrapProgram $out/bin/racer --set-default RUST_SRC_PATH ${rustPlatform.rustLibSrc}
'';
checkFlags = [
"--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"
"--skip test_resolve_global_path_in_modules"
];
doInstallCheck = true;
installCheckPhase = ''
$out/bin/racer --version
'';
meta = with lib; {
description = "A utility intended to provide Rust code completion for editors and IDEs";
homepage = "https://github.com/racer-rust/racer";
license = licenses.mit;
maintainers = with maintainers; [ jagajaga ];
};
}