Nix: build from main, add metadata
This commit is contained in:
parent
981e70a743
commit
07039f2266
1 changed files with 9 additions and 5 deletions
14
package.nix
14
package.nix
|
|
@ -7,12 +7,9 @@ buildNpmPackage {
|
||||||
name = "shows-api";
|
name = "shows-api";
|
||||||
version = "1.0";
|
version = "1.0";
|
||||||
|
|
||||||
src = builtins.fetchGit {
|
src = ./.;
|
||||||
url = "https://git.everest.tailscale/Toast/shows-api";
|
|
||||||
rev = "82e1a6258fc7704395233c23c79050204dbd1992";
|
|
||||||
};
|
|
||||||
|
|
||||||
npmDepsHash = "sha256-iNib7GPvbpTexhRsq24TXoW0jlIox1IcA3wmE0BQcJM=";
|
npmDepsHash = "sha256-+nEblj18nt4tU4xAT+p/Dpv2RjYF36K8eZPgPCL7EMg=";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
@ -27,4 +24,11 @@ buildNpmPackage {
|
||||||
--add-flags $out/dist/main --chdir $out \
|
--add-flags $out/dist/main --chdir $out \
|
||||||
--set NODE_ENV production
|
--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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue