Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, rustPlatform, fetchCrate }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "rust-code-analysis"; 5 version = "0.0.25"; 6 7 src = fetchCrate { 8 pname = "rust-code-analysis-cli"; 9 inherit version; 10 hash = "sha256-/Irmtsy1PdRWQ7dTAHLZJ9M0J7oi2IiJyW6HeTIDOCs="; 11 }; 12 13 cargoHash = "sha256-axrtFZQOm1/UUBq1CDFkaZCks1mWoLWmfajDfsqSBmY="; 14 15 meta = with lib; { 16 description = "Analyze and collect metrics on source code"; 17 homepage = "https://github.com/mozilla/rust-code-analysis"; 18 license = with licenses; [ 19 mit # grammars 20 mpl20 # code 21 ]; 22 maintainers = with maintainers; [ figsoda ]; 23 mainProgram = "rust-code-analysis-cli"; 24 }; 25}