3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #138959 from figsoda/rust-code-analysis

rust-code-analysis: init at 0.0.23
This commit is contained in:
figsoda 2021-09-22 14:51:03 -04:00 committed by GitHub
commit c5ccc212eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "rust-code-analysis";
version = "0.0.23";
src = fetchFromGitHub {
owner = "mozilla";
repo = pname;
rev = "v${version}";
sha256 = "1l9qr5rvbj542fx6g6h9p38z31kvwli39vipbmd3pvic2mpi6mzx";
};
cargoSha256 = "sha256-++d/czDJVGzY8GvBpBKpP0Rum4J4RpT95S81IRUWY2M=";
cargoBuildFlags = [ "--workspace" ];
meta = with lib; {
description = "Analyze and collect metrics on source code";
homepage = "https://github.com/mozilla/rust-code-analysis";
license = with licenses; [
mit # grammars
mpl20 # code
];
maintainers = with maintainers; [ figsoda ];
mainProgram = "rust-code-analysis-cli";
};
}

View file

@ -8842,6 +8842,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
rust-code-analysis = callPackage ../development/tools/rust-code-analysis { };
rust-petname = callPackage ../tools/text/rust-petname { };
rustscan = callPackage ../tools/security/rustscan {