@@ -1,45 +0,0 @@
1−{ lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, makeWrapper, Security }:
2−
3−rustPlatform.buildRustPackage rec {
4− pname = "racerd";
5− version = "unstable-2019-09-02";
6−
7− src = fetchFromGitHub {
8− owner = "jwilm";
9− repo = "racerd";
10− rev = "e3d380b9a1d3f3b67286d60465746bc89fea9098";
11− sha256 = "13jqdvjk4savcl03mrn2vzgdsd7vxv2racqbyavrxp2cm9h6cjln";
12− };
13−
14− cargoPatches = [
15− (fetchpatch {
16− url = "https://github.com/jwilm/racerd/commit/856f3656e160cd2909c5166e962f422c901720ee.patch";
17− sha256 = "1qq2k4bnwjz5qgn7s8yxd090smwn2wvdm8dd1rrlgpln0a5vxkpb";
18− })
19− ];
20−
21− cargoSha256 = "08zn65c5ivhn2qs02aiixyqwhywrw8kfvs0kgzxdzsipic47n2qq";
22−
23− # a nightly compiler is required unless we use this cheat code.
24− RUSTC_BOOTSTRAP=1;
25−
26− doCheck = false;
27−
28− nativeBuildInputs = [ makeWrapper ];
29− buildInputs = lib.optional stdenv.isDarwin Security;
30−
31− RUST_SRC_PATH = rustPlatform.rustcSrc;
32−
33− installPhase = ''
34− mkdir -p $out/bin
35− cp -p $releaseDir/racerd $out/bin/
36− wrapProgram $out/bin/racerd --set-default RUST_SRC_PATH "$RUST_SRC_PATH"
37− '';
38−
39− meta = with lib; {
40− broken = true;
41− description = "JSON/HTTP Server based on racer for adding Rust support to editors and IDEs";
42− homepage = "https://github.com/jwilm/racerd";
43− license = licenses.asl20;
44− };
45−}