shogihome: fix build on darwin

This commit is contained in:
Kenichi Kamiya
2026-07-03 02:08:01 +09:00
parent 97406dc537
commit c03414ca22
+6
View File
@@ -5,6 +5,7 @@
fetchFromGitHub,
makeWrapper,
electron_42,
cacert,
makeDesktopItem,
copyDesktopItems,
commandLineArgs ? [ ],
@@ -50,6 +51,11 @@ buildNpmPackage (finalAttrs: {
env = {
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
npm_config_build_from_source = "true";
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Prevent "unable to get local issuer certificate" error
NODE_EXTRA_CA_CERTS = "${cacert}/etc/ssl/certs/ca-bundle.crt";
};
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [