beadwork: init at 0.13.0

This commit is contained in:
Philip Munksgaard
2026-05-12 12:58:13 +02:00
parent 6ca0f794b5
commit aec4068955
+51
View File
@@ -0,0 +1,51 @@
{
lib,
buildGoModule,
fetchFromGitHub,
gitMinimal,
nix-update-script,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "beadwork";
version = "0.13.0";
src = fetchFromGitHub {
owner = "jallum";
repo = "beadwork";
rev = "v${finalAttrs.version}";
hash = "sha256-SuIQygsd/X8khQ1+S/af5haREBxsznFfcefLwsJRv/g=";
};
vendorHash = "sha256-LjqZSI7F3C8GyNrPK/BwG9QTmNg89hFAvhUuBjmbHTU=";
subPackages = [ "cmd/bw" ];
nativeCheckInputs = [
gitMinimal
versionCheckHook
];
doCheck = true;
doInstallCheck = true;
preCheck = ''
export HOME="$TMPDIR"
git config --global user.email "test@test.com"
git config --global user.name "Test"
git config --global init.defaultBranch main
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Git-native work management for AI coding agents";
homepage = "https://github.com/jallum/beadwork";
license = licenses.mit;
mainProgram = "bw";
maintainers = with lib.maintainers; [ munksgaard ];
};
__structuredAttrs = true;
})