Files
alex 6013b17aad chore(packages): bump pins to current upstream releases
Refresh every package pin so the overlay stops carrying versions upstream
has moved past, and repair the pins where an automated bump had produced a
version that no longer resolves:

- graphify 0.9.61 -> 1.0.0 and back to tag tracking: the branch-tracking
  update script generated v0.9.77-unstable-<date> for a rev = "v${version}"
  src, a tag that never existed
- radar 1.13.1 -> 1.16.2 (upstream retagged its releases as k8s-ui-v*)
- llama-cpp b9645 -> b11439
- hipengine 0.5.0 -> 0.6.1, traycer 1.3.0 -> 1.4.2, freetoken 0.1.2 -> 0.1.3
- awg-tool 0.4.0, freebuff 0.2.19, kubernetes-mcp-server 0.0.67,
  marmel 0-unstable-2026-10-05, open-code-review 1.12.12,
  ds4 0-unstable-2026-09-20
- version-string normalisation for the branch-tracked packages already at
  their newest commit (g3, haivemind, shardr, skillsmcp)

Every changed src hash was re-fetched and verified. omniroute stays at
3.8.50: 3.8.51 changes its npm lockfile, so its npmDepsHash would have to
be recomputed before the bump is usable.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-10-06 16:46:26 +03:00

96 lines
2.4 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
cmake,
libx11,
libxtst,
llvmPackages,
}:
rustPlatform.buildRustPackage rec {
pname = "g3";
# Upstream has no git tags or releases; pin main and let nix-update
# track the branch. Version shape matches nix-update --version=branch=main
# for a tagless repository (package version is 0.1.0 upstream).
version = "0-unstable-2026-09-06";
src = fetchFromGitHub {
owner = "dhanji";
repo = "g3";
rev = "9793144520d290a9ea621a06cf7d8322e6fa4a35";
hash = "sha256-s4QlOah7ffoFjiTw2nO/SbCbvIRxr4HB/3pOpQpGWRM=";
};
# Cargo.lock has a git dependency (tree-sitter-haskell); cargoHash /
# fetchCargoVendor covers registry + git sources.
cargoHash = "sha256-6dvN4//NNuo9s5QzTcrxYiNkxP0Ivysg6f1F9soFrL4=";
nativeBuildInputs = [
pkg-config
cmake
# llama-cpp-sys-2 runs bindgen, which needs libclang.
llvmPackages.libclang
];
buildInputs = [
openssl
libx11
libxtst
];
# bindgen (via llama-cpp-sys-2) needs libclang and the C library headers.
env = {
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
BINDGEN_EXTRA_CLANG_ARGS = "-isystem ${lib.getDev stdenv.cc.libc}/include";
};
# Root package only builds/installs its own bins; studio is a sibling
# workspace member. Match upstream install.sh: ship g3 and studio
# (renamed to g3-studio).
cargoBuildFlags = [
"-p"
"g3"
"-p"
"studio"
];
cargoInstallFlags = [
"-p"
"g3"
"-p"
"studio"
];
# Provider and computer-control tests need network, LLM credentials, and a
# display; not runnable in the Nix sandbox.
doCheck = false;
# Upstream install.sh names the companion workspace manager g3-studio.
postInstall = ''
mv "$out/bin/studio" "$out/bin/g3-studio"
'';
passthru = {
category = "AI Coding Agents";
updateScript = [
"nix-update"
"--flake"
".#g3"
"--version=branch=main"
];
};
meta = with lib; {
description = "AI coding agent that writes code and executes commands, with multi-provider LLM support, context compaction, and desktop automation";
homepage = "https://github.com/dhanji/g3";
# Cargo.toml declares MIT; the repository ships no LICENSE file.
license = licenses.mit;
sourceProvenance = with sourceTypes; [ fromSource ];
mainProgram = "g3";
platforms = platforms.unix;
};
}