1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/rust/racer/default.nix
2014-11-27 23:06:07 +03:00

31 lines
799 B
Nix

{stdenv, fetchgit, rust, makeWrapper }:
let
rustSrc = rust.src;
in
stdenv.mkDerivation rec {
#TODO add emacs support
name = "racer-git-2014-11-24";
src = fetchgit {
url = https://github.com/phildawes/racer;
rev = "50655ffd509bea09ea9b310970dedfeaf5a33cf3";
sha256 = "0bd456i4nz12z39ljnw1kjg8mcflvm7rjql2r80fb038c7rd6xi1";
};
buildInputs = [ rust makeWrapper ];
installPhase = ''
mkdir -p $out/bin
cp -p bin/racer $out/bin/
wrapProgram $out/bin/racer --set RUST_SRC_PATH "${rustSrc}/src"
'';
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 ];
};
}