This repository has no description
1{
2 runCommandLocal,
3 htmx-src,
4 htmx-ws-src,
5 lucide-src,
6 inter-fonts-src,
7 ibm-plex-mono-src,
8 actor-typeahead-src,
9 mermaid-src,
10 hls-src,
11 mathjax-src,
12 tailwindcss,
13 dolly,
14 src,
15}:
16runCommandLocal "appview-static-files" {
17 # TODO(winter): figure out why this is even required after
18 # changing the libraries that the tailwindcss binary loads
19 sandboxProfile = ''
20 (allow file-read* (subpath "/System/Library/OpenSSL"))
21 '';
22} ''
23 mkdir -p $out/{fonts,icons,logos} && cd $out
24 cp -f ${htmx-src} htmx.min.js
25 cp -f ${htmx-ws-src} htmx-ext-ws.min.js
26 cp -f ${mermaid-src} mermaid.min.js
27 cp -f ${hls-src} hls.min.js
28 cp -f ${mathjax-src} mathjax.min.js
29 cp -rf ${lucide-src}/*.svg icons/
30 cp -rf ${src}/icons/*.svg icons/
31 cp -f ${inter-fonts-src}/web/InterVariable*.woff2 fonts/
32 cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 fonts/
33 cp -f ${inter-fonts-src}/InterVariable*.ttf fonts/
34 cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono*.woff2 fonts/
35 cp -f ${actor-typeahead-src}/actor-typeahead.js .
36 cp -rf ${src}/appview/pages/profile-fx .
37
38 ${dolly}/bin/dolly -output logos/dolly.png -size 180
39 ${dolly}/bin/dolly -output logos/dolly.ico -size 48
40 ${dolly}/bin/dolly -output logos/dolly.svg -color currentColor -favicon
41 # tailwindcss -c $src/tailwind.config.js -i $src/input.css -o tw.css won't work
42 # for whatever reason (produces broken css), so we are doing this instead
43 cd ${src} && ${tailwindcss}/bin/tailwindcss -i input.css -o $out/tw.css
44''