{ lib, nodejs, pnpm, stdenv, }: stdenv.mkDerivation (finalAttrs: { pname = "chicken-box"; version = "dev"; src = lib.cleanSource ./.; nativeBuildInputs = [ nodejs pnpm.configHook ]; pnpmDeps = pnpm.fetchDeps { inherit (finalAttrs) pname version src; hash = "sha256-m7F6vHoMduvyvoFwta93LiH+SdeU2fx9m+4w9b63/lY="; }; buildPhase = '' runHook preBuild pnpm build runHook postBuild ''; installPhase = '' runHook preInstall cp -r ./dist $out runHook postInstall ''; meta = { homepage = "https://git.ny4.dev/nyancat/chicken-box"; license = lib.licenses.mit; }; })