shogihome: 1.27.3 -> 1.28.0, fix build on darwin (#537878)

This commit is contained in:
Arne Keller
2026-07-03 16:32:09 +00:00
committed by GitHub
+11 -5
View File
@@ -4,7 +4,8 @@
buildNpmPackage,
fetchFromGitHub,
makeWrapper,
electron_40,
electron_42,
cacert,
makeDesktopItem,
copyDesktopItems,
commandLineArgs ? [ ],
@@ -17,20 +18,20 @@
}:
let
electron = electron_40;
electron = electron_42;
in
buildNpmPackage (finalAttrs: {
pname = "shogihome";
version = "1.27.3";
version = "1.28.0";
src = fetchFromGitHub {
owner = "sunfish-shogi";
repo = "shogihome";
tag = "v${finalAttrs.version}";
hash = "sha256-25Iu/bKUCotJdQESxPPOiYehwn+D3RYnZiJfMWJ4cn0=";
hash = "sha256-icFWpyfdnm0wIkTVa2ijcnBcDmxrutV38vN3/8AY4cg=";
};
npmDepsHash = "sha256-gWI21dPha7yX367r50U3C9wpX5/6oBzHGJNtFmG/GQ8=";
npmDepsHash = "sha256-SSpw8bBbf6saWwR3ZpqMrbrdjDJTCeARBAlHO65O+Zc=";
postPatch = ''
substituteInPlace package.json \
@@ -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 [