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}";
|
2017-06-26 15:58:10 +01:00
|
|
|
version = "2017-02-17";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jwilm";
|
|
|
|
repo = "racerd";
|
|
|
|
rev = "e3f3ff010fce2c67195750d9a6a669ffb3c2ac5f";
|
|
|
|
sha256 = "125pmbkjnjh83xwikcwfbb8g150nldz7wh0ly1gv9kl1b521dydk";
|
2016-03-20 07:29:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-06-26 15:58:10 +01:00
|
|
|
depsSha256 = "0db18m0vxzvg821gb5g8njhlnxw7im81m089i4982n8hmnhm1497";
|
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;
|
|
|
|
};
|
|
|
|
}
|