Unverified Commit 734f61d2 authored by Emily's avatar Emily Committed by GitHub
Browse files

chromium: fix `print()` crashing (#402653)

parents 90a38fc0 5974f5a0
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -534,6 +534,21 @@ let
          decode = "base64 -d";
          hash = "sha256-xMqGdu5Q8BGF/OIRdmMzPrrrMGDOSY2xElFfhRsJlDU=";
        })
      ]
      ++ lib.optionals (!isElectron) [
        # Backport "Only call format_message when needed" to fix print() crashing with is_cfi = true.
        # We build electron is_cfi = false and as such electron is not affected by this.
        # https://github.com/NixOS/nixpkgs/issues/401326
        # https://gitlab.archlinux.org/archlinux/packaging/packages/chromium/-/issues/13
        # https://skia-review.googlesource.com/c/skia/+/961356
        (fetchpatch {
          name = "only-call-format_message-when-needed.patch";
          url = "https://skia.googlesource.com/skia/+/71685eda67178fa374d473ec1431fc459c83bb21^!?format=TEXT";
          decode = "base64 -d";
          stripLen = 1;
          extraPrefix = "third_party/skia/";
          hash = "sha256-aMqDjt/0cowqSm5DqcD3+zX+mtjydk396LD+B5F/3cs=";
        })
      ];

    postPatch =