nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 36 lines 828 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 makeWrapper, 5 rustPlatform, 6 rust-analyzer, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "ra-multiplex"; 11 version = "0.2.5"; 12 13 src = fetchFromGitHub { 14 owner = "pr2502"; 15 repo = "ra-multiplex"; 16 rev = "v${version}"; 17 hash = "sha256-aBrn9g+MGXLAsOmHqw1Tt6NPFGJTyYv/L9UI/vQU4i8="; 18 }; 19 20 cargoHash = "sha256-NVE/ROk6x1R0D5eyOzz1gYPvgG0lX5L2tCuZGIS9kzs="; 21 22 nativeBuildInputs = [ makeWrapper ]; 23 24 postInstall = '' 25 wrapProgram $out/bin/ra-multiplex \ 26 --suffix PATH : ${lib.makeBinPath [ rust-analyzer ]} 27 ''; 28 29 meta = with lib; { 30 description = "Multiplexer for rust-analyzer"; 31 mainProgram = "ra-multiplex"; 32 homepage = "https://github.com/pr2502/ra-multiplex"; 33 license = with licenses; [ mit ]; 34 maintainers = with maintainers; [ norfair ]; 35 }; 36}