clan-ui: remove intermediate app directory

This commit is contained in:
Jörg Thalheim
2025-05-15 14:29:46 +02:00
parent 876027ea02
commit cc20e0bf35
159 changed files with 93 additions and 135 deletions

25
pkgs/clan-app/ui.nix Normal file
View File

@@ -0,0 +1,25 @@
{
buildNpmPackage,
nodejs_20,
importNpmLock,
clan-ts-api,
fonts,
}:
buildNpmPackage {
pname = "clan-app-ui";
version = "0.0.1";
nodejs = nodejs_20;
src = ./ui;
npmDeps = importNpmLock {
npmRoot = ./ui;
};
npmConfigHook = importNpmLock.npmConfigHook;
preBuild = ''
mkdir -p api
cp -r ${clan-ts-api}/* api
cp -r ${fonts} ".fonts"
'';
}