kiro-account-manager: fill in hashes and fix frontend path via postPatch

This commit is contained in:
Rongsong Shen 2026-05-09 07:47:53 +08:00
parent b03bbe9f4a
commit e6a8a34661

View file

@ -20,14 +20,14 @@ let
owner = "hj01857655"; owner = "hj01857655";
repo = "kiro-account-manager"; repo = "kiro-account-manager";
rev = "2e2d4b09d3ad3b028dab719958707d9e19923261"; rev = "2e2d4b09d3ad3b028dab719958707d9e19923261";
hash = ""; hash = "sha256-d1TOjpzVNM+qKW12Ny6FeVfxdipY0ZUbs6Xg9TKeinI=";
}; };
frontend = buildNpmPackage { frontend = buildNpmPackage {
pname = "${pname}-frontend"; pname = "${pname}-frontend";
inherit version src; inherit version src;
npmDepsHash = ""; npmDepsHash = "sha256-BI0lxemB7qcu1o7bp6kOZrl1/YTVPa8jNUFpZIMZB1I=";
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -41,10 +41,11 @@ in rustPlatform.buildRustPackage {
sourceRoot = "${src.name}/src-tauri"; sourceRoot = "${src.name}/src-tauri";
cargoHash = ""; cargoHash = "sha256-GXoNqhwvK9A5zPt0Wb8+hJA+N1nm2DvOb2FfaurLq2Q=";
preBuild = '' postPatch = ''
cp -r ${frontend} ../dist substituteInPlace tauri.conf.json \
--replace-fail '"frontendDist": "../dist"' '"frontendDist": "${frontend}"'
''; '';
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];