2024-07-27 06:49:29 +00:00
|
|
|
{ lib
|
2022-11-04 12:27:35 +00:00
|
|
|
, fetchFromGitLab
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitlab-clippy";
|
|
|
|
version = "1.0.3";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "dlalic";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-d7SmlAWIV4SngJhIvlud90ZUSF55FWIrzFpkfSXIy2Y=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-ztPbI+ncMNMKnIxUksxgz8GHQpLZ7SVWdC4QJWh18Wk=";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
# 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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gitlab-clippy";
|
2022-11-04 12:27:35 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ wucke13 ];
|
|
|
|
};
|
|
|
|
}
|