{ lib, flake, buildGoModule, fetchFromGitHub, versionCheckHook, }: buildGoModule rec { pname = "sidecar"; version = "1.3.0"; src = fetchFromGitHub { owner = "marcus"; repo = "sidecar"; tag = "v${version}"; hash = "sha256-/XrGNJ0/o2jhbELjc3CHTF0VrggcNDt4CcjxyMuU30k="; }; vendorHash = "sha256-aR4O8YcW6T9g8BfcKVjfe3iTLfJNy0pcjMDYAWsoCiE="; subPackages = [ "cmd/sidecar" ]; ldflags = [ "-s" "-w" "-X=main.Version=${version}" ]; doCheck = false; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; passthru.category = "Workflow & Project Management"; meta = with lib; { description = "Terminal-based development companion for AI coding agents"; homepage = "https://github.com/marcus/sidecar"; changelog = "https://github.com/marcus/sidecar/releases/tag/v${version}"; license = licenses.mit; sourceProvenance = with sourceTypes; [ fromSource ]; maintainers = with flake.lib.maintainers; [ afterthought ]; mainProgram = "sidecar"; platforms = platforms.linux ++ platforms.darwin; }; }