diff --git a/pkgs/development/tools/electron/41-skia-patchdir.patch b/pkgs/development/tools/electron/41-skia-patchdir.patch new file mode 100644 index 000000000000..9612d4292b85 --- /dev/null +++ b/pkgs/development/tools/electron/41-skia-patchdir.patch @@ -0,0 +1,12 @@ +diff --git a/electron/patches/config.json b/electron/patches/config.json +index ed42ff8123..7af1c839cc 100644 +--- a/electron/patches/config.json ++++ b/electron/patches/config.json +@@ -12,6 +12,6 @@ + { "patch_dir": "src/electron/patches/ReactiveObjC", "repo": "src/third_party/squirrel.mac/vendor/ReactiveObjC" }, + { "patch_dir": "src/electron/patches/webrtc", "repo": "src/third_party/webrtc" }, + { "patch_dir": "src/electron/patches/reclient-configs", "repo": "src/third_party/engflow-reclient-configs" }, +- { "patch_dir": "src/electron/patches/skia", "repo": "src/third_party/skia/src" }, ++ { "patch_dir": "src/electron/patches/skia", "repo": "src/third_party/skia" }, + { "patch_dir": "src/electron/patches/sqlite", "repo": "src/third_party/sqlite/src" } + ] diff --git a/pkgs/development/tools/electron/common.nix b/pkgs/development/tools/electron/common.nix index 052b05af47d5..ab263d9da197 100644 --- a/pkgs/development/tools/electron/common.nix +++ b/pkgs/development/tools/electron/common.nix @@ -128,6 +128,9 @@ in url = "https://github.com/chromium/chromium/commit/9415f40bc6f853547f791e633be638c71368ce56.patch"; hash = "sha256-+M4gI77SoQ4dYIe/iGFgIwF1fS/6KQ8s16vj8ht/rik="; }) + ] + ++ lib.optionals (lib.versions.major info.version == "41") [ + ./41-skia-patchdir.patch ]; postPatch = ''