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

36 lines
941 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;
2017-06-26 15:58:10 +01:00
depsSha256 = "0db18m0vxzvg821gb5g8njhlnxw7im81m089i4982n8hmnhm1497";
buildInputs = [ makeWrapper ];
RUST_SRC_PATH = ''${rustPlatform.rust.rustc.src}/src'';
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;
};
}