diff options
author | Robert Schütz <nix@dotlambda.de> | 2023-01-28 21:21:05 -0800 |
---|---|---|
committer | Robert Schütz <nix@dotlambda.de> | 2023-01-28 22:11:20 -0800 |
commit | e713cf56f2532863e9fdda38c2c7e9b80fcab9fa (patch) | |
tree | 007f599985629a5acc4998da7c2fd222bce552ba /pkgs/applications/networking/instant-messengers/deltachat-desktop | |
parent | 4a2cd239ec8936ce7a56bf5008451abd3186a462 (diff) |
deltachat-desktop: use electron_22
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/deltachat-desktop')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix b/pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix index bd3d75bd66bb..805aadfc40a9 100644 --- a/pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix @@ -1,7 +1,7 @@ { lib , buildNpmPackage , copyDesktopItems -, electron_18 +, electron_22 , buildGoModule , esbuild , fetchFromGitHub @@ -57,7 +57,15 @@ in buildNpmPackage rec { hash = "sha256-XOGfKa0eGVZKKKC0Pm2kw48XWWcrxCyDdYzCSKp+wco="; }; - npmDepsHash = "sha256-ZMXXBDVT5rHTzHOrKAUAezL/1UTMdzbBllG69kxg55M="; + patches = [ + (fetchpatch { + name = "bump-electron-to-22.1.0.patch"; + url = "https://github.com/deltachat/deltachat-desktop/commit/944d2735cda6cd5a95cb83c57484fbaf16720a9c.patch"; + hash = "sha256-kaKi32eFQ3hGLZLjiXmH9qs4GXezcDQ7zTdT2+D8NcQ="; + }) + ]; + + npmDepsHash = "sha256-J3/S/jYQvO/U8StDtYI+jozon0d4VCdeqFX6x1hHzMo="; nativeBuildInputs = [ makeWrapper @@ -105,7 +113,7 @@ in buildNpmPackage rec { $out/lib/node_modules/deltachat-desktop/html-dist/fonts done - makeWrapper ${electron_18}/bin/electron $out/bin/deltachat \ + makeWrapper ${electron_22}/bin/electron $out/bin/deltachat \ --set LD_PRELOAD ${sqlcipher}/lib/libsqlcipher${stdenv.hostPlatform.extensions.sharedLibrary} \ --add-flags $out/lib/node_modules/deltachat-desktop |