2018-11-10 07:38:20 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper, substituteAll }:
|
2014-11-23 19:42:22 +00:00
|
|
|
|
2017-03-22 01:45:55 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2015-09-24 00:45:45 +01:00
|
|
|
name = "racer-${version}";
|
2018-07-22 03:47:30 +01:00
|
|
|
version = "2.0.14";
|
2017-03-22 01:45:55 +00:00
|
|
|
|
2015-09-24 00:45:45 +01:00
|
|
|
src = fetchFromGitHub {
|
2017-07-27 22:55:26 +01:00
|
|
|
owner = "racer-rust";
|
2015-09-24 00:45:45 +01:00
|
|
|
repo = "racer";
|
2017-03-22 01:45:55 +00:00
|
|
|
rev = version;
|
2018-07-22 03:47:30 +01:00
|
|
|
sha256 = "0kgax74qa09axq7b175ph3psprgidwgsml83wm1qwdq16gpxiaif";
|
2014-11-23 19:42:22 +00:00
|
|
|
};
|
|
|
|
|
2018-07-22 03:47:30 +01:00
|
|
|
cargoSha256 = "1j3fviimdxn6xa75z0l9wkgdnznp8q20jjs42mql6ql782dga5lk";
|
2015-01-20 18:24:49 +00:00
|
|
|
|
2018-11-10 07:38:20 +00:00
|
|
|
buildInputs = [ makeWrapper ];
|
2015-01-20 18:24:49 +00:00
|
|
|
|
2015-04-21 19:34:26 +01:00
|
|
|
preCheck = ''
|
2017-07-27 22:55:26 +01:00
|
|
|
export RUST_SRC_PATH="${rustPlatform.rustcSrc}"
|
2015-01-20 18:24:49 +00:00
|
|
|
'';
|
2017-11-15 14:48:54 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./rust-src.patch;
|
|
|
|
inherit (rustPlatform) rustcSrc;
|
|
|
|
})
|
|
|
|
./ignore-tests.patch
|
|
|
|
];
|
2016-07-25 20:31:53 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2014-11-27 20:06:07 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-28 09:54:58 +01:00
|
|
|
description = "A utility intended to provide Rust code completion for editors and IDEs";
|
2017-07-27 22:55:26 +01:00
|
|
|
homepage = https://github.com/racer-rust/racer;
|
2017-03-22 01:45:55 +00:00
|
|
|
license = licenses.mit;
|
2015-09-24 00:45:45 +01:00
|
|
|
maintainers = with maintainers; [ jagajaga globin ];
|
2016-07-14 10:46:57 +01:00
|
|
|
platforms = platforms.all;
|
2014-11-23 19:42:22 +00:00
|
|
|
};
|
|
|
|
}
|