{ lib , buildNpmPackage , nodejs , production ? true }: buildNpmPackage { name = "shows-api"; version = "1.0"; src = ./.; npmDepsHash = "sha256-+nEblj18nt4tU4xAT+p/Dpv2RjYF36K8eZPgPCL7EMg="; installPhase = '' runHook preInstall npm config delete cache npm prune mkdir -p $out mv package.json package-lock.json node_modules dist $out makeWrapper ${lib.getExe nodejs} $out/bin/shows-api \ --add-flags $out/dist/main --chdir $out \ --set NODE_ENV ${if production then "production" else "development"} ''; meta = { description = "NestJS API to store info about shows on a MongoDB database"; homepage = "https://git.everest.tailscale/Toast/shows-api"; sourceProvenance = [ lib.sourceTypes.fromSource ]; mainProgram = "shows-api"; }; }