mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
38 lines
963 B
Nix
38 lines
963 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper, substituteAll }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
name = "racer-${version}";
|
|
version = "2.0.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "racer-rust";
|
|
repo = "racer";
|
|
rev = version;
|
|
sha256 = "0kgax74qa09axq7b175ph3psprgidwgsml83wm1qwdq16gpxiaif";
|
|
};
|
|
|
|
cargoSha256 = "119xfkglpfq26bz411rjj31i088vr0847p571cxph5v3dfxbgz4y";
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
preCheck = ''
|
|
export RUST_SRC_PATH="${rustPlatform.rustcSrc}"
|
|
'';
|
|
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";
|
|
homepage = https://github.com/racer-rust/racer;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jagajaga globin ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|