mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
shogihome: fix build on darwin
This commit is contained in:
parent
97406dc537
commit
c03414ca22
1 changed files with 6 additions and 0 deletions
|
|
@ -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 [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue