clan-ui: remove intermediate app directory
This commit is contained in:
25
pkgs/clan-app/ui.nix
Normal file
25
pkgs/clan-app/ui.nix
Normal 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"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user