beads/default.nix
CI Bot b097e5c48f build(nix): update vendorHash for the oapi-codegen tool dependency
Adding the oapi-codegen tool directive to go.mod changes the module graph,
so the fixed-output derivation's vendorHash no longer matches. The repo's
vendorHash updater only runs for dependabot Go bumps, so this is manual.

Hash taken from the nix build failure on #5208.
2026-08-01 02:34:08 +00:00

44 lines
1 KiB
Nix

{
lib,
self,
buildGoModule,
git,
...
}:
buildGoModule {
pname = "beads";
version = "1.1.0";
src = self;
# Point to the main Go package
subPackages = [ "cmd/bd" ];
tags = [ "gms_pure_go" ];
doCheck = false;
# proxyVendor avoids vendor/modules.txt consistency checks when the vendored
# tree lags go.mod/go.sum.
proxyVendor = true;
vendorHash = "sha256-uRwj/p/wsLhYuq7O4y/KEgoHflkW5ROEw/hyazeoat4=";
# Match go.mod to the selected Nix Go toolchain. buildGoModule also builds
# vendored dependencies in the Nix sandbox, where toolchain downloads are not
# available.
postPatch = ''
goVer="$(go env GOVERSION | sed 's/^go//')"
go mod edit -go="$goVer"
'';
env.GOTOOLCHAIN = "local";
# Git is required for tests
nativeBuildInputs = [ git ];
meta = with lib; {
description = "beads (bd) - An issue tracker designed for AI-supervised coding workflows";
homepage = "https://github.com/gastownhall/beads";
license = licenses.mit;
mainProgram = "bd";
maintainers = [ ];
};
}