depot/third_party/nixpkgs/pkgs/development/tools/rust/ra-multiplex/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

35 lines
821 B
Nix

{ lib
, fetchFromGitHub
, makeWrapper
, rustPlatform
, rust-analyzer
}:
rustPlatform.buildRustPackage rec {
pname = "ra-multiplex";
version = "0.2.5";
src = fetchFromGitHub {
owner = "pr2502";
repo = "ra-multiplex";
rev = "v${version}";
hash = "sha256-aBrn9g+MGXLAsOmHqw1Tt6NPFGJTyYv/L9UI/vQU4i8=";
};
cargoHash = "sha256-Z5KK+tFkQjnZkU1wNT0Xk1ERjYcQT8MNGDBK53u36hE=";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/ra-multiplex \
--suffix PATH : ${lib.makeBinPath [ rust-analyzer ]}
'';
meta = with lib; {
description = "Multiplexer for rust-analyzer";
mainProgram = "ra-multiplex";
homepage = "https://github.com/pr2502/ra-multiplex";
license = with licenses; [ mit ];
maintainers = with maintainers; [ norfair ];
};
}