This repository was archived by the owner on Feb 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +61
-1372
lines changed Expand file tree Collapse file tree 10 files changed +61
-1372
lines changed Original file line number Diff line number Diff line change 1818 ( builtins . readDir function ) "${ function } /function.zip" ;
1919 } ;
2020
21+
2122 function-unsplash =
2223 pkgs . runCommand "build-lambda" { }
2324 ''
4344 ${ pkgs . zip } /bin/zip -r $out/function.zip main.js main_hs
4445 '' ;
4546
46- function-presenter-path =
47- { path = builtins . seq
48- ( builtins . readDir function-presenter ) "${ function-presenter } /function.zip" ;
49- } ;
50-
51- function-presenter =
52- pkgs . runCommand "build-lambda-presenter" { }
53- ''
54- cp ${ pkgs . wai-lambda . wai-lambda-js-wrapper } main.js
55- # Can't be called 'main' otherwise lambda tries to load it
56- cp "${ handler } /bin/presenter" main_hs
57- cp ${ deckdeckgo-starter-dist } /dist.tar dist.tar
58- mkdir -p $out
59- ${ pkgs . zip } /bin/zip -r $out/function.zip main.js main_hs dist.tar
60- '' ;
61-
6247 function-dirty-path =
6348 { path = builtins . seq
6449 ( builtins . readDir function-dirty ) "${ function-dirty } /function.zip" ;
189174
190175 publicKey = builtins . readFile ./public.cer ;
191176
192- swaggerUi = pkgs . runCommand "swagger-ui" { }
193- ''
194- mkdir -p $out
195- ${ handler } /bin/swagger $out
196- '' ;
197-
198177 googleResp = { "key1" = publicKey ; } ;
199178
200179 apiDir = pkgs . writeTextFile
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments