1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "rust-code-analysis";
9 version = "0.0.25";
10
11 src = fetchCrate {
12 pname = "rust-code-analysis-cli";
13 inherit version;
14 hash = "sha256-/Irmtsy1PdRWQ7dTAHLZJ9M0J7oi2IiJyW6HeTIDOCs=";
15 };
16
17 cargoHash = "sha256-HirLjKkfZfc9UmUcUF5WW7xAJuCu7ftJDH8+zTSYlxs=";
18
19 meta = with lib; {
20 description = "Analyze and collect metrics on source code";
21 homepage = "https://github.com/mozilla/rust-code-analysis";
22 license = with licenses; [
23 mit # grammars
24 mpl20 # code
25 ];
26 maintainers = with maintainers; [ figsoda ];
27 mainProgram = "rust-code-analysis-cli";
28 };
29}