feat: add open-code-review package (alibaba AI code review CLI)
CI / check (push) Has been cancelled
CI / check (push) Has been cancelled
Build alibaba/open-code-review v1.12.9 from source via buildGoModule (CGO disabled, cmd/opencodereview subpackage, version ldflags). 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "open-code-review";
|
||||
version = "1.12.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alibaba";
|
||||
repo = "open-code-review";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-g/l4Ezv1YJYjRNI2DU5WgkaPvYp+/SC3yL+HEl/8kFI=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-f5Ty22wicf1J8+RKnHYcEO7flWn9gkWQODlfunn23EA=";
|
||||
|
||||
env.CGO_ENABLED = 0;
|
||||
|
||||
subPackages = [ "cmd/opencodereview" ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.Version=v${version}"
|
||||
"-X main.GitCommit=v${version}"
|
||||
"-X main.BuildDate=1970-01-01T00:00:00Z"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
category = "Code Review";
|
||||
updateScript = [
|
||||
"nix-update"
|
||||
"--flake"
|
||||
".#open-code-review"
|
||||
];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "AI-powered code review CLI combining deterministic pipelines with an LLM agent";
|
||||
homepage = "https://github.com/alibaba/open-code-review";
|
||||
changelog = "https://github.com/alibaba/open-code-review/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
sourceProvenance = with sourceTypes; [ fromSource ];
|
||||
mainProgram = "opencodereview";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user