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

merged
opened by winter.bsky.social targeting master from winter.bsky.social/core: push-surzrrzroqny
Changed files
+7 -1
nix
+7 -1
nix/pkgs/appview-static-files.nix
···
tailwindcss,
src,
}:
-
runCommandLocal "appview-static-files" {} ''
mkdir -p $out/{fonts,icons} && cd $out
cp -f ${htmx-src} htmx.min.js
cp -f ${htmx-ws-src} htmx-ext-ws.min.js
···
tailwindcss,
src,
}:
+
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