depot/third_party/nixpkgs/pkgs/by-name/ra/ra-multiplex/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

37 lines
858 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=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-NVE/ROk6x1R0D5eyOzz1gYPvgG0lX5L2tCuZGIS9kzs=";
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 ];
};
}