forked from tangled.org/core
tangled monorepo

nix/pkgs/appview-static-files: fix build on sandboxed macOS

Signed-off-by: Winter <winter@winter.cafe>

Changed files
+7 -1
nix
+7 -1
nix/pkgs/appview-static-files.nix
···
tailwindcss,
src,
}:
-
runCommandLocal "appview-static-files" {} ''
+
runCommandLocal "appview-static-files" {
+
# TOOD(winter): figure out why this is even required after
+
# changing the libraries that the tailwindcss binary loads
+
sandboxProfile = ''
+
(allow file-read* (subpath "/System/Library/OpenSSL"))
+
'';
+
} ''
mkdir -p $out/{fonts,icons} && cd $out
cp -f ${htmx-src} htmx.min.js
cp -f ${htmx-ws-src} htmx-ext-ws.min.js