{ buildNpmPackage, src, web-static-files, }: buildNpmPackage { pname = "tangled-docs"; version = "0.0.1"; # the docs site renders the web app's ui components and theme straight # from web/src, so the build needs the repo root too inherit src; sourceRoot = "${src.name}/docs"; npmDepsHash = "sha256-HMi2N2gcU4UOmU0taQdQRbdHqAlzYq54ff14ekoKqso="; env.ASTRO_TELEMETRY_DISABLED = "1"; # same self-hosted fonts as the web app (web/src/fonts.css) preBuild = '' mkdir -p public/fonts cp -f ${web-static-files}/fonts/* public/fonts/ ''; installPhase = '' runHook preInstall cp -r dist $out runHook postInstall ''; }