depot/third_party/nixpkgs/pkgs/by-name/ov/overlayed/webui.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

40 lines
624 B
Nix

{
src,
meta,
version,
stdenv,
nodejs,
pnpm,
}:
stdenv.mkDerivation (finalAttrs: {
inherit version src meta;
pname = "overlayed-webui";
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) src pname version;
hash = "sha256-FBJrVXTgKh8Op7TiZjA/i2LY2OOIKmqGR+GwGUecqVI=";
};
nativeBuildInputs = [
nodejs
pnpm.configHook
];
buildPhase = ''
runHook preBuild
cd apps/desktop
node --max_old_space_size=1024000 ./node_modules/vite/bin/vite.js build
runHook postBuild
'';
installPhase = ''
runHook preInstall
cp -r dist $out
runHook postInstall
'';
})