mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
koodo-reader: fix darwin build
This commit is contained in:
parent
b5aa0fbd53
commit
52e3f27b51
1 changed files with 6 additions and 0 deletions
|
|
@ -70,6 +70,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
export npm_config_nodedir=${nodejs-slim}
|
||||
npm rebuild --verbose cpu-features
|
||||
|
||||
# register-scheme is an optional dependency of discord-rpc that fails to compile on modern macOS/Electron
|
||||
# and is not required for the application's core functionality.
|
||||
${lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
rm -rf node_modules/register-scheme
|
||||
''}
|
||||
|
||||
export npm_config_nodedir=${electron.headers}
|
||||
# Explicitly set identity to null to avoid signing on darwin
|
||||
yarn --offline run electron-builder --dir \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue