2014-11-23 20:42:22 +01:00
|
|
|
{stdenv, fetchgit, rust, makeWrapper }:
|
|
|
|
|
|
|
|
let
|
|
|
|
rustSrc = rust.src;
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
#TODO add emacs support
|
2015-01-10 14:25:54 +01:00
|
|
|
name = "racer-git-2015-01-07";
|
2014-11-23 20:42:22 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = https://github.com/phildawes/racer;
|
2015-01-09 14:16:00 +01:00
|
|
|
rev = "bf73c05ac719cd3b0f8d8f9e0ecb066ede6aa9d9";
|
|
|
|
sha256 = "1159fsfca2kqvlajp8sawrskip7hc0rppk8vhwxa2vw8zznp56w0";
|
2014-11-23 20:42:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ rust makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -p bin/racer $out/bin/
|
|
|
|
wrapProgram $out/bin/racer --set RUST_SRC_PATH "${rustSrc}/src"
|
|
|
|
'';
|
|
|
|
|
2014-11-27 21:06:07 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-11-23 20:42:22 +01:00
|
|
|
description = "A utility intended to provide rust code completion for editors and IDEs.";
|
|
|
|
homepage = https://github.com/phildawes/racer;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-11-27 21:06:07 +01:00
|
|
|
maintainers = [ maintainers.jagajaga ];
|
2014-11-23 20:42:22 +01:00
|
|
|
};
|
|
|
|
}
|