2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, rustPlatform
|
|
|
|
, rust-analyzer
|
|
|
|
}:
|
|
|
|
|
2024-10-09 16:51:18 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2023-08-04 22:07:22 +00:00
|
|
|
pname = "ra-multiplex";
|
2024-10-09 16:51:18 +00:00
|
|
|
version = "0.2.5";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pr2502";
|
|
|
|
repo = "ra-multiplex";
|
2024-10-09 16:51:18 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-aBrn9g+MGXLAsOmHqw1Tt6NPFGJTyYv/L9UI/vQU4i8=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2024-10-09 16:51:18 +00:00
|
|
|
cargoHash = "sha256-Z5KK+tFkQjnZkU1wNT0Xk1ERjYcQT8MNGDBK53u36hE=";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/ra-multiplex \
|
2024-10-09 16:51:18 +00:00
|
|
|
--suffix PATH : ${lib.makeBinPath [ rust-analyzer ]}
|
2023-08-04 22:07:22 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Multiplexer for rust-analyzer";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ra-multiplex";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://github.com/pr2502/ra-multiplex";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ norfair ];
|
|
|
|
};
|
|
|
|
}
|