35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{ pkgs, self }:
|
|
pkgs.buildGoModule {
|
|
pname = "beads";
|
|
version = "0.56.1";
|
|
|
|
src = self;
|
|
|
|
# Point to the main Go package
|
|
subPackages = [ "cmd/bd" ];
|
|
doCheck = false;
|
|
# Go module dependencies hash - if build fails with hash mismatch, update with the "got:" value
|
|
vendorHash = "sha256-nhhntZqWUEDExvXyhlC/640uCU0yUN7J7+P02CuI8YI=";
|
|
|
|
# Relax go.mod version for Nix: nixpkgs Go may lag behind the latest
|
|
# patch release, and GOTOOLCHAIN=auto can't download in the Nix sandbox.
|
|
postPatch = ''
|
|
goVer="$(go env GOVERSION | sed 's/^go//')"
|
|
sed -i "s/^go .*/go $goVer/" go.mod
|
|
'';
|
|
|
|
# Allow patch-level toolchain upgrades when a dependency's minimum Go patch
|
|
# version is newer than nixpkgs' bundled patch version.
|
|
env.GOTOOLCHAIN = "auto";
|
|
|
|
# Git is required for tests
|
|
nativeBuildInputs = [ pkgs.git ];
|
|
|
|
meta = with pkgs.lib; {
|
|
description = "beads (bd) - An issue tracker designed for AI-supervised coding workflows";
|
|
homepage = "https://github.com/steveyegge/beads";
|
|
license = licenses.mit;
|
|
mainProgram = "bd";
|
|
maintainers = [ ];
|
|
};
|
|
}
|