{ lib, buildGoModule, fetchFromGitHub, gitMinimal, nix-update-script, versionCheckHook, writableTmpDirAsHomeHook, }: buildGoModule (finalAttrs: { pname = "td"; version = "0.34.0"; src = fetchFromGitHub { owner = "marcus"; repo = "td"; tag = "v${finalAttrs.version}"; hash = "sha256-VwVg+b8nhGbv2RgxDOUOSwFCIZyhA/Wt3lT9NUzw6aU="; }; vendorHash = "sha256-Rp0lhnBLJx+exX7VLql3RfthTVk3LLftD6n6SsSWzVY="; ldflags = [ "-s" "-w" "-X" "main.Version=v${finalAttrs.version}" ]; nativeCheckInputs = [gitMinimal writableTmpDirAsHomeHook]; nativeInstallCheckInputs = [versionCheckHook writableTmpDirAsHomeHook]; versionCheckProgramArg = "version"; doInstallCheck = true; doCheck = false; passthru.updateScript = nix-update-script {}; meta = with lib; { description = "Minimalist CLI for tracking tasks across AI coding sessions"; homepage = "https://github.com/marcus/td"; license = licenses.mit; mainProgram = "td"; platforms = platforms.unix; }; })