mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-22 05:07:45 +03:00
d648be6724
Also disable check phase in cargo as there are lots of failures (some probably due to trying to access the network).
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{stdenv, fetchgit, rustPlatform, makeWrapper }:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
#TODO add emacs support
|
|
name = "racer-git-2015-04-12";
|
|
src = fetchgit {
|
|
url = https://github.com/phildawes/racer;
|
|
rev = "5437e2074d87dfaab75a0f1bd2597bed61c0bbf1";
|
|
sha256 = "0a768gvjry86l0xa5q0122iyq7zn2h9adfniglsgrbs4fan49xyn";
|
|
};
|
|
|
|
depsSha256 = "0x1rq012k04ci18w5fll56jn011f1yyprs38pb3r223bag94ivsy";
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
preCheck = ''
|
|
export RUST_SRC_PATH="${rustc.src}/src"
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -p target/release/racer $out/bin/
|
|
wrapProgram $out/bin/racer --set RUST_SRC_PATH "${rustc.src}/src"
|
|
install -d $out/share/emacs/site-lisp
|
|
install "editors/"*.el $out/share/emacs/site-lisp
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A utility intended to provide Rust code completion for editors and IDEs.";
|
|
homepage = https://github.com/phildawes/racer;
|
|
license = stdenv.lib.licenses.mit;
|
|
maintainers = [ maintainers.jagajaga ];
|
|
};
|
|
}
|