add deepseek-tui

This commit is contained in:
Rongsong Shen 2026-05-08 23:53:59 +08:00
parent 3c727ec4b4
commit 04a44a1493
3 changed files with 109 additions and 0 deletions

View file

@ -0,0 +1,71 @@
{ lib
, rustPlatform
, fetchFromGitHub
, buildNpmPackage
, pkg-config
, openssl
, glib
, gtk3
, libsoup_3
, webkitgtk_4_1
, dbus
, libayatana-appindicator
}:
let
pname = "kiro-account-manager";
version = "1.8.5";
src = fetchFromGitHub {
owner = "hj01857655";
repo = "kiro-account-manager";
rev = "2e2d4b09d3ad3b028dab719958707d9e19923261";
hash = "";
};
frontend = buildNpmPackage {
pname = "${pname}-frontend";
inherit version src;
npmDepsHash = "";
installPhase = ''
runHook preInstall
cp -r dist $out
runHook postInstall
'';
};
in rustPlatform.buildRustPackage {
inherit pname version src;
sourceRoot = "${src.name}/src-tauri";
cargoHash = "";
preBuild = ''
cp -r ${frontend} ../dist
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
glib
gtk3
dbus
libsoup_3
webkitgtk_4_1
libayatana-appindicator
];
doCheck = false;
meta = {
description = "Kiro IDE account manager with multi-account switching and quota monitoring";
homepage = "https://github.com/hj01857655/kiro-account-manager";
license = lib.licenses.cc-by-nc-sa-40;
mainProgram = "kiro-account-manager";
platforms = lib.platforms.linux;
};
}