shogihome: fix build on darwin

This commit is contained in:
Kenichi Kamiya 2026-07-01 10:52:29 +09:00
commit c03414ca22
No known key found for this signature in database
GPG key ID: 9BE4016A38165CCB

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 [