Nix: build from main, add metadata

This commit is contained in:
Toast 2025-01-31 13:04:36 +01:00
parent 981e70a743
commit 07039f2266

View file

@ -7,12 +7,9 @@ buildNpmPackage {
name = "shows-api";
version = "1.0";
src = builtins.fetchGit {
url = "https://git.everest.tailscale/Toast/shows-api";
rev = "82e1a6258fc7704395233c23c79050204dbd1992";
};
src = ./.;
npmDepsHash = "sha256-iNib7GPvbpTexhRsq24TXoW0jlIox1IcA3wmE0BQcJM=";
npmDepsHash = "sha256-+nEblj18nt4tU4xAT+p/Dpv2RjYF36K8eZPgPCL7EMg=";
installPhase = ''
runHook preInstall
@ -27,4 +24,11 @@ buildNpmPackage {
--add-flags $out/dist/main --chdir $out \
--set NODE_ENV production
'';
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";
};
}