forked from
tangled.org/core
Monorepo for Tangled — https://tangled.org
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 sqlite-lib,
10 tailwindcss,
11 src,
12}:
13runCommandLocal "appview-static-files" {
14 # TOOD(winter): figure out why this is even required after
15 # changing the libraries that the tailwindcss binary loads
16 sandboxProfile = ''
17 (allow file-read* (subpath "/System/Library/OpenSSL"))
18 '';
19} ''
20 mkdir -p $out/{fonts,icons} && cd $out
21 cp -f ${htmx-src} htmx.min.js
22 cp -f ${htmx-ws-src} htmx-ext-ws.min.js
23 cp -rf ${lucide-src}/*.svg icons/
24 cp -f ${inter-fonts-src}/web/InterVariable*.woff2 fonts/
25 cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 fonts/
26 cp -f ${inter-fonts-src}/InterVariable*.ttf fonts/
27 cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono*.woff2 fonts/
28 cp -f ${actor-typeahead-src}/actor-typeahead.js .
29 # tailwindcss -c $src/tailwind.config.js -i $src/input.css -o tw.css won't work
30 # for whatever reason (produces broken css), so we are doing this instead
31 cd ${src} && ${tailwindcss}/bin/tailwindcss -i input.css -o $out/tw.css
32''