Files
millerson-overlay.nix/packages/open-code-review/package.nix
T
alex e2f24b0876 chore(packages): bump pins to current upstream releases
- awg-tool 0.4.0 -> 0.5.0
- awgen 0.1 -> 0.2
- codeaf 0.7.1 -> 0.8.2
- ds4 -> ee7e840 (2026-10-21)
- freebuff 0.2.19 -> 0.2.34
- graphify 0.9.77 -> 0.9.95 (add pyyaml dependency)
- hipengine 0.6.1 -> 0.8.3
- kubernetes-mcp-server 0.0.67 -> 0.0.69 (build with go_1_27)
- kyojin 1.3 -> 1.7.1 (drop obsolete setup.py/pyproject patches, ship
  gr_mix_hip from the package, add ninja runtime dependency)
- marmel -> de3e99c (2026-10-23)
- omniroute 3.8.50 -> 3.8.52
- open-code-review 1.12.12 -> 1.13.3 (build with go_1_27)
- pilotdeck 2026.10.17 -> 2026.10.20
- radar 1.16.2 -> 1.18.0
- traycer 1.4.2 -> 1.5.1

Verified: nix build passes for every bumped package; kyojin.tests.jit
compiles all five JIT kernels.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-10-24 14:09:34 +03:00

66 lines
1.6 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
callPackage,
go_1_27,
}:
# go.mod requires go >= 1.26.9; nixpkgs' default Go is older.
(buildGoModule.override { go = go_1_27; }) rec {
pname = "open-code-review";
version = "1.13.3";
src = fetchFromGitHub {
owner = "alibaba";
repo = "open-code-review";
rev = "v${version}";
hash = "sha256-dDKNxjI0pWoJGabUvsGTERYKvKtvEm3UGD/FLPKpfnw=";
};
vendorHash = "sha256-LpqnNp6gxHatHH68pM59ESQICDDSVrkZm7AJLVvYTao=";
env.CGO_ENABLED = 0;
subPackages = [ "cmd/opencodereview" ];
doCheck = false;
# Upstream (and the bundled OpenCode plugin) invokes the CLI as `ocr`, but the
# Go build names the binary after its cmd/ directory.
postInstall = ''
ln -s $out/bin/opencodereview $out/bin/ocr
'';
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";
# OpenCode plugin built from the same source revision as the CLI.
opencode-plugin = callPackage ./opencode-plugin.nix {
inherit src version;
};
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;
};
}