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

31 lines
799 B
Nix
Raw Normal View History

2014-11-23 19:42:22 +00:00
{stdenv, fetchgit, rust, makeWrapper }:
let
rustSrc = rust.src;
in
stdenv.mkDerivation rec {
#TODO add emacs support
2014-12-04 23:32:01 +00:00
name = "racer-git-2014-12-04";
2014-11-23 19:42:22 +00:00
src = fetchgit {
url = https://github.com/phildawes/racer;
2014-12-04 23:32:01 +00:00
rev = "cc633ad2477cb064ba6e4d23b58c124c8521410c";
sha256 = "1nqlgdqnqhzbnbxvhs60gk5hjzrxfq8blyh1riiknxdlq5kqaky7";
2014-11-23 19:42:22 +00: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 20:06:07 +00:00
meta = with stdenv.lib; {
2014-11-23 19:42:22 +00: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 20:06:07 +00:00
maintainers = [ maintainers.jagajaga ];
2014-11-23 19:42:22 +00:00
};
}