Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 35 lines 844 B view raw
1{ lib 2, fetchFromGitHub 3, makeWrapper 4, rustPlatform 5, rust-analyzer 6}: 7 8rustPlatform.buildRustPackage { 9 pname = "ra-multiplex"; 10 version = "0.2.2"; 11 12 src = fetchFromGitHub { 13 owner = "pr2502"; 14 repo = "ra-multiplex"; 15 rev = "dcb5f83890cb91016b0a1590cc1b732606bb6ec1"; 16 hash = "sha256-Hf4Gj9eXEP4gXiqNV4Jq0oiGLX3DtDF9At1feEZ+bUE="; 17 }; 18 19 cargoHash = "sha256-MeUtkPjOsL1kQ2W0Q1/OqhKDVXs4cECkATHISpyfp9U="; 20 21 nativeBuildInputs = [ makeWrapper ]; 22 23 postInstall = '' 24 wrapProgram $out/bin/ra-multiplex \ 25 --suffix PATH ${lib.makeBinPath [ rust-analyzer ]} 26 ''; 27 28 meta = with lib; { 29 description = "Multiplexer for rust-analyzer"; 30 mainProgram = "ra-multiplex"; 31 homepage = "https://github.com/pr2502/ra-multiplex"; 32 license = with licenses; [ mit ]; 33 maintainers = with maintainers; [ norfair ]; 34 }; 35}