Skip to content

Commit

Permalink
rustracerd: build with current rust
Browse files Browse the repository at this point in the history
Fix taken from jwilm/racerd#82.  It just
updates a dependency.
  • Loading branch information
alyssais committed Mar 14, 2020
1 parent 337b357 commit 6cea0da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 9 additions & 2 deletions pkgs/development/tools/rust/racerd/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper , Security }:
{ stdenv, fetchFromGitHub, fetchpatch, rustPlatform, makeWrapper, Security }:

rustPlatform.buildRustPackage rec {
pname = "racerd";
Expand All @@ -11,7 +11,14 @@ rustPlatform.buildRustPackage rec {
sha256 = "13jqdvjk4savcl03mrn2vzgdsd7vxv2racqbyavrxp2cm9h6cjln";
};

cargoSha256 = "1nwjr7v8hkhsql93wbwk5gqqiq725gj5iwwsbd250my9g5kkfdbw";
cargoPatches = [
(fetchpatch {
url = "https://github.com/jwilm/racerd/commit/856f3656e160cd2909c5166e962f422c901720ee.patch";
sha256 = "1qq2k4bnwjz5qgn7s8yxd090smwn2wvdm8dd1rrlgpln0a5vxkpb";
})
];

cargoSha256 = "1z0dh2j9ik66i6nww3z7z2gw7nhc0b061zxbjzamk1jybpc845lq";

# a nightly compiler is required unless we use this cheat code.
RUSTC_BOOTSTRAP=1;
Expand Down
1 change: 0 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8925,7 +8925,6 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
rustracerd = callPackage ../development/tools/rust/racerd {
inherit (rustPackages_1_38_0) rustPlatform;
inherit (darwin.apple_sdk.frameworks) Security;
};
rust-bindgen = callPackage ../development/tools/rust/bindgen { };
Expand Down

0 comments on commit 6cea0da

Please sign in to comment.