mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
claude-powerline: init at 1.30.1
Assisted-by: Claude Code (Claude Opus 5)
This commit is contained in:
44
pkgs/by-name/cl/claude-powerline/package.nix
Normal file
44
pkgs/by-name/cl/claude-powerline/package.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user