Files
nixpkgs/pkgs/beads/default.nix
m3tm3re 6ee5035bcb fix: resolve Gitea Actions authentication issue in nix-update workflow
- Replace actions/checkout@v4 with manual git clone using token-embedded
  URL to fix 'could not read Username: terminal prompts disabled' error
- Disable GIT_TERMINAL_PROMPT and GIT_ASKPASS to prevent interactive prompts
- Consolidate git config setup into checkout step

Package updates:
- beads: 0.47.1 -> 0.47.2
- opencode: 1.1.18 -> 1.1.25

Beads state sync:
- Close nixpkgs-8jw (Gitea Actions node PATH issue resolved)
- Close nixpkgs-r3u (Gitea Actions nix-update workflow complete)
- Create nixpkgs-8ng (opencode subpackage update requires special args)
- Remove deleted tombstone issues
2026-01-17 10:57:15 +01:00

63 lines
1.6 KiB
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
gitMinimal,
installShellFiles,
versionCheckHook,
writableTmpDirAsHomeHook,
}:
buildGoModule (finalAttrs: {
pname = "beads";
version = "0.47.2";
src = fetchFromGitHub {
owner = "steveyegge";
repo = "beads";
tag = "v${finalAttrs.version}";
hash = "sha256-yj57dWrxNO8hp1q/W3VX9bQbvJZhUdLpvDqhfwJM7UA=";
};
vendorHash = "sha256-YU+bRLVlWtHzJ1QPzcKJ70f+ynp8lMoIeFlm+29BNPE=";
subPackages = ["cmd/bd"];
ldflags = ["-s" "-w"];
nativeBuildInputs = [installShellFiles];
nativeCheckInputs = [gitMinimal writableTmpDirAsHomeHook];
# Skip security tests on Darwin - they check for /etc/passwd which isn't available in sandbox
checkFlags =
lib.optionals stdenv.hostPlatform.isDarwin
["-skip=TestCleanupMergeArtifacts_CommandInjectionPrevention"];
preCheck = ''
export PATH="$out/bin:$PATH"
'';
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd bd \
--bash <($out/bin/bd completion bash) \
--fish <($out/bin/bd completion fish) \
--zsh <($out/bin/bd completion zsh)
'';
nativeInstallCheckInputs = [versionCheckHook writableTmpDirAsHomeHook];
versionCheckProgramArg = "version";
doInstallCheck = true;
# Tests require git worktree operations that fail in Nix sandbox
doCheck = false;
meta = {
description = "Lightweight memory system for AI coding agents with graph-based issue tracking";
homepage = "https://github.com/steveyegge/beads";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [kedry];
mainProgram = "bd";
};
})