1{ lib, rustPlatform, fetchFromGitHub }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "rust-code-analysis"; 5 version = "0.0.23"; 6 7 src = fetchFromGitHub { 8 owner = "mozilla"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "1l9qr5rvbj542fx6g6h9p38z31kvwli39vipbmd3pvic2mpi6mzx"; 12 }; 13 14 cargoSha256 = "sha256-++d/czDJVGzY8GvBpBKpP0Rum4J4RpT95S81IRUWY2M="; 15 16 cargoBuildFlags = [ "--workspace" ]; 17 18 meta = with lib; { 19 description = "Analyze and collect metrics on source code"; 20 homepage = "https://github.com/mozilla/rust-code-analysis"; 21 license = with licenses; [ 22 mit # grammars 23 mpl20 # code 24 ]; 25 maintainers = with maintainers; [ figsoda ]; 26 mainProgram = "rust-code-analysis-cli"; 27 }; 28}