{ pkgs, bun2nix, system, ... }: let bun2nixPkg = bun2nix.packages.${system}.default; bunDeps = bun2nixPkg.fetchBunDeps { bunNix = ../front/bun.nix; }; in pkgs.stdenv.mkDerivation { pname = "iky-frontend"; version = "0.1.0"; src = ../front; nativeBuildInputs = [ bun2nixPkg.hook ]; inherit bunDeps; buildPhase = '' runHook preBuild bun run build runHook postBuild ''; installPhase = '' runHook preInstall cp -r dist $out runHook postInstall ''; meta.description = "Iknowyou OSINT platform: static Astro frontend"; }