3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/rust/racerd/default.nix

36 lines
923 B
Nix
Raw Normal View History

2017-06-26 15:58:10 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
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";
};
doCheck = false;
cargoSha256 = "1h7hm7vkk1grah6pn5ydfi5pzc2kd48lh2kxim5jlvrxhd2dingg";
buildInputs = [ makeWrapper ];
RUST_SRC_PATH = rustPlatform.rustcSrc;
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;
};
}