depot/third_party/nixpkgs/pkgs/development/tools/rust/gitlab-clippy/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

31 lines
800 B
Nix

{ lib
, fetchFromGitLab
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "gitlab-clippy";
version = "1.0.3";
src = fetchFromGitLab {
owner = "dlalic";
repo = pname;
rev = version;
hash = "sha256-d7SmlAWIV4SngJhIvlud90ZUSF55FWIrzFpkfSXIy2Y=";
};
cargoHash = "sha256-ztPbI+ncMNMKnIxUksxgz8GHQpLZ7SVWdC4QJWh18Wk=";
# TODO re-add theses tests once they get fixed in upstream
checkFlags = [
"--skip cli::converts_error_from_pipe"
"--skip cli::converts_warnings_from_pipe"
];
meta = {
homepage = "https://gitlab.com/dlalic/gitlab-clippy";
description = "Convert clippy warnings into GitLab Code Quality report";
mainProgram = "gitlab-clippy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ wucke13 ];
};
}