From f780a982cf026025392c688dc25ff926e3b1a0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sat, 10 Nov 2018 08:38:20 +0100 Subject: [PATCH] rustracer: remove rustup dependency racer builds fine on Linux and macOS without racer as a dependency. racer does not actually use rustup, but 'rustc --print sysroot', which is already available through the rustc dependency. --- pkgs/development/tools/rust/racer/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/rust/racer/default.nix b/pkgs/development/tools/rust/racer/default.nix index 7be1a9777c0..8474f99bc8b 100644 --- a/pkgs/development/tools/rust/racer/default.nix +++ b/pkgs/development/tools/rust/racer/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper, rustup, substituteAll }: +{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper, substituteAll }: rustPlatform.buildRustPackage rec { name = "racer-${version}"; @@ -13,8 +13,7 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1j3fviimdxn6xa75z0l9wkgdnznp8q20jjs42mql6ql782dga5lk"; - # rustup is required for test - buildInputs = [ makeWrapper rustup ]; + buildInputs = [ makeWrapper ]; preCheck = '' export RUST_SRC_PATH="${rustPlatform.rustcSrc}"