1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

Merge pull request #10055 from mayflower/racer-rustfmt

Fix/Update racer and rustfmt
This commit is contained in:
William A. Kennington III 2015-09-25 13:52:57 -07:00
commit 585e0031f5
2 changed files with 14 additions and 11 deletions

View file

@ -1,17 +1,18 @@
{stdenv, fetchgit, rustPlatform, makeWrapper }:
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
with rustPlatform;
buildRustPackage rec {
#TODO add emacs support
name = "racer-git-2015-05-18";
src = fetchgit {
url = https://github.com/phildawes/racer;
rev = "c2d31ed49baa11f06ffc0c7bc8f95dd00037d035";
sha256 = "0g420cbqpknhl61a4mpk3bbia8agf657d9vzzcqr338lmni80qz7";
name = "racer-${version}";
version = "1.0.0";
src = fetchFromGitHub {
owner = "phildawes";
repo = "racer";
rev = "v${version}";
sha256 = "1b6829nqx0sqw1akcid61izw8mah1dfx2nxldkmmg4scnydhvw1l";
};
depsSha256 = "0s951apqcr96lvc1jamk6qw3631gwnlnfgcx55vlznfm7shnmywn";
depsSha256 = "1hfqr1kidl77lq3djbhfn37whvv6k0hg9g5gcnl6pgl6kn669hdc";
buildInputs = [ makeWrapper ];
@ -24,13 +25,13 @@ buildRustPackage rec {
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
install "editors/emacs/"*.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 ];
maintainers = with maintainers; [ jagajaga globin ];
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchgit, rustUnstable, makeWrapper }:
{ stdenv, fetchgit, rustUnstable, makeWrapper, llvmPackages_37 }:
with rustUnstable;
@ -10,6 +10,8 @@ buildRustPackage rec {
sha256 = "0q72mfj2ph2n4cd0cs4p2mpyr2ixd6ss607kjlgfinjv6klk1i3b";
};
buildInputs = [ llvmPackages_37.llvm ];
depsSha256 = "13i9qaia1wn18lgfl69rrxw7b24bq1bpqhdck2jzxpv3wi2xshlw";
meta = with stdenv.lib; {