2017-06-26 15:58:10 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
2016-03-20 07:29:47 +00:00
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
|
|
|
name = "racerd-${version}";
|
2018-02-20 18:15:43 +00:00
|
|
|
version = "2017-09-15";
|
2017-06-26 15:58:10 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jwilm";
|
|
|
|
repo = "racerd";
|
2018-02-20 18:15:43 +00:00
|
|
|
rev = "29cd4c6fd2a9301e49931c2e065b2e10c4b587e4";
|
|
|
|
sha256 = "0knz881mjhd8q2i8ydggaa7lfpiqy11wjmnv5p80n1d8zca6yb7z";
|
2016-03-20 07:29:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-02-20 18:15:43 +00:00
|
|
|
cargoSha256 = "00gxj98zdkbrc5cxd4w5hk7iwv9a1kwa535hhspx9xd02r4d8rzl";
|
2016-03-20 07:29:47 +00:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2017-07-18 16:15:00 +01:00
|
|
|
RUST_SRC_PATH = rustPlatform.rustcSrc;
|
2016-03-20 07:29:47 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -p target/release/racerd $out/bin/
|
|
|
|
wrapProgram $out/bin/racerd --set RUST_SRC_PATH "$RUST_SRC_PATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "JSON/HTTP Server based on racer for adding Rust support to editors and IDEs";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/jwilm/racerd;
|
2016-03-20 07:29:47 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|