picoclaw: init at 0.2.0 (#492249)

This commit is contained in:
Pol Dellaiera 2026-03-06 17:16:10 +00:00 committed by GitHub
commit c974b5e254
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 63 additions and 0 deletions

View file

@ -16248,6 +16248,12 @@
githubId = 115060;
name = "Marek Maksimczyk";
};
manfredmacx = {
email = "mfmacx@proton.me";
github = "manfredmacx";
githubId = 222261305;
name = "Manfred Macx";
};
Mange = {
name = "Magnus Bergmark";
email = "me@mange.dev";

View file

@ -0,0 +1,57 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "picoclaw";
version = "0.2.0";
src = fetchFromGitHub {
owner = "sipeed";
repo = "picoclaw";
tag = "v${finalAttrs.version}";
hash = "sha256-zCeURNN152yL3Qi1UFDvSB85xflbLAMzQUTwGThALss=";
};
proxyVendor = true;
vendorHash = "sha256-CsTGC5Ajo9RV6rJPQgnFqA+bQ2TEafI4tt3iXpVwaeY=";
preBuild = ''
go generate ./...
'';
ldflags = [
"-s"
"-w"
"-X github.com/sipeed/picoclaw/cmd/picoclaw/internal.version=${finalAttrs.version}"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "version";
checkFlags =
let
skippedTests = [
"TestGetVersion"
"TestCodexCliProvider_MockCLI_Success"
"TestCodexCliProvider_MockCLI_Error"
"TestCodexCliProvider_MockCLI_WithModel"
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
meta = {
description = "Tiny, Fast, and Deployable anywhere - automate the mundane, unleash your creativity";
homepage = "https://github.com/sipeed/picoclaw";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
manfredmacx
drupol
];
mainProgram = "picoclaw";
};
})