Files
nix/packages/llama-swap/ui.nix
Evan Reichard 57d50992bf chore(llama-swap): bump to version 189
Updated llama-swap to version 189 with corresponding hash updates.
Adjusted UI sourceRoot from "ui" to "ui-svelte" to match upstream
directory structure changes.
2026-02-04 08:33:40 -05:00

26 lines
560 B
Nix

{ llama-swap
, buildNpmPackage
,
}:
buildNpmPackage (finalAttrs: {
pname = "${llama-swap.pname}-ui";
inherit (llama-swap) version src npmDepsHash;
postPatch = ''
substituteInPlace vite.config.ts \
--replace-fail "../proxy/ui_dist" "${placeholder "out"}/ui_dist"
'';
sourceRoot = "${finalAttrs.src.name}/ui-svelte";
# bundled "ui_dist" doesn't need node_modules
postInstall = ''
rm -rf $out/lib
'';
meta = (removeAttrs llama-swap.meta [ "mainProgram" ]) // {
description = "${llama-swap.meta.description} - UI";
};
})