2016-03-20 07:29:47 +00:00
|
|
|
{ stdenv, fetchgit, rustPlatform, makeWrapper }:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
|
|
|
name = "racerd-${version}";
|
2017-02-03 13:53:42 +00:00
|
|
|
version = "2016-12-24";
|
2016-03-20 07:29:47 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/jwilm/racerd.git";
|
2017-02-03 13:53:42 +00:00
|
|
|
rev = "dc090ea11d550cd513416d21227d558dbfd2fcb6";
|
|
|
|
sha256 = "0jfryb1b32m6bn620gd7y670cfipaswj1cppzkybm4xg6abqh07b";
|
2016-03-20 07:29:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-02-03 13:53:42 +00:00
|
|
|
depsSha256 = "1vv6fyisi11bcajxkq3ihpl59yh504xmnsr222zj15hmivn0jwf2";
|
2016-03-20 07:29:47 +00:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2016-06-14 11:49:48 +01:00
|
|
|
RUST_SRC_PATH = ''${rustPlatform.rust.rustc.src}/src'';
|
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";
|
|
|
|
homepage = "https://github.com/jwilm/racerd";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|