claude-powerline: init at 1.30.1

Assisted-by: Claude Code (Claude Opus 5)
This commit is contained in:
TANIGUCHI Kohei
2026-08-07 01:12:22 +09:00
parent 736aa3afbd
commit 2e177405e4

View File

@@ -0,0 +1,44 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "claude-powerline";
version = "1.30.1";
src = fetchFromGitHub {
owner = "Owloops";
repo = "claude-powerline";
tag = "v${finalAttrs.version}";
hash = "sha256-Kevx+gZULenAPKe0LYov+v4byCJHoauf58Xkxd53Xyw=";
};
npmDepsHash = "sha256-D3Z5tb4phZUMPQaXvfYiIWuwaX5YGI8ubgyV7sSJqQk=";
__structuredAttrs = true;
doCheck = true;
# jest forks its worker children with FORCE_COLOR=1, which fails the terminal
# detection cases in test/colors.test.ts. --runInBand keeps them in-process.
checkPhase = ''
runHook preCheck
npm test -- --runInBand
runHook postCheck
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Beautiful vim-style powerline for Claude Code";
homepage = "https://github.com/Owloops/claude-powerline";
changelog = "https://github.com/Owloops/claude-powerline/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cohei ];
mainProgram = "claude-powerline";
};
})