forked from mirrors/nixpkgs
062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
36 lines
923 B
Nix
36 lines
923 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
name = "racerd-${version}";
|
|
version = "2017-09-15";
|
|
src = fetchFromGitHub {
|
|
owner = "jwilm";
|
|
repo = "racerd";
|
|
rev = "29cd4c6fd2a9301e49931c2e065b2e10c4b587e4";
|
|
sha256 = "0knz881mjhd8q2i8ydggaa7lfpiqy11wjmnv5p80n1d8zca6yb7z";
|
|
};
|
|
|
|
doCheck = false;
|
|
|
|
cargoSha256 = "0rxr8l5fhryxqf141sb2j4bjxdikj2hd7bnhbicgm35c9f6cir4m";
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
RUST_SRC_PATH = rustPlatform.rustcSrc;
|
|
|
|
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;
|
|
};
|
|
}
|