Merge pull request #15444 from bkase/youcompleteme-racerd
racerd: init at 0.1.1
This commit is contained in:
commit
83a89d03d2
34
pkgs/development/tools/rust/racerd/default.nix
Normal file
34
pkgs/development/tools/rust/racerd/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ stdenv, fetchgit, rustPlatform, makeWrapper }:
|
||||
|
||||
with rustPlatform;
|
||||
|
||||
buildRustPackage rec {
|
||||
name = "racerd-${version}";
|
||||
version = "0.1.1";
|
||||
src = fetchgit {
|
||||
url = "git://github.com/jwilm/racerd.git";
|
||||
rev = "dcbb7885e84eb5e2fbb2072e185701ad1abbd93a";
|
||||
sha256 = "18c6a1x0li5yxif9qqnsnyas6if0m6srbqh0h0nywgx0lm8bpgly";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
depsSha256 = "0ca0lc8mm8kczll5m03n5fwsr0540c2xbfi4nn9ksn0s4sap50yn";
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
RUST_SRC_PATH = ''${rustc.src}/src'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -p target/release/racerd $out/bin/
|
||||
wrapProgram $out/bin/racerd --set RUST_SRC_PATH "$RUST_SRC_PATH"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "JSON/HTTP Server based on racer for adding Rust support to editors and IDEs";
|
||||
homepage = "https://github.com/jwilm/racerd";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
# TODO check that no license information gets lost
|
||||
{ fetchurl, bash, stdenv, python, go, cmake, vim, vimUtils, perl, ruby, unzip
|
||||
, which, fetchgit, fetchFromGitHub, fetchhg, fetchzip, llvmPackages_38, zip
|
||||
, vim_configurable, vimPlugins, xkb_switch, git
|
||||
, vim_configurable, vimPlugins, xkb_switch, git, racerdRust
|
||||
, Cocoa ? null
|
||||
}:
|
||||
|
||||
@ -953,6 +953,10 @@ rec {
|
||||
llvmPackages_38.llvm
|
||||
] ++ stdenv.lib.optional stdenv.isDarwin Cocoa;
|
||||
|
||||
propogatedBuildInputs = [
|
||||
racerdRust
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
patchShebangs .
|
||||
substituteInPlace plugin/youcompleteme.vim \
|
||||
|
@ -4,6 +4,10 @@
|
||||
llvmPackages.llvm
|
||||
] ++ stdenv.lib.optional stdenv.isDarwin Cocoa;
|
||||
|
||||
propogatedBuildInputs = [
|
||||
racerdRust
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
patchShebangs .
|
||||
substituteInPlace plugin/youcompleteme.vim \
|
||||
|
@ -6307,6 +6307,8 @@ in
|
||||
|
||||
racerRust = callPackage ../development/tools/rust/racer { };
|
||||
|
||||
racerdRust = callPackage ../development/tools/rust/racerd { };
|
||||
|
||||
radare = callPackage ../development/tools/analysis/radare {
|
||||
inherit (gnome) vte;
|
||||
lua = lua5;
|
||||
|
Loading…
Reference in New Issue
Block a user