Commit 69acd205 authored by Jan Tojnar's avatar Jan Tojnar
Browse files

gnome-online-accounts: Fix crash with libxml 2.12

parent 2fe42ab7
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitLab
, fetchpatch
, pkg-config
, vala
, glib
@@ -44,6 +45,14 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-USl0Qay9pSgbbp3n/L8eBaRQwaBYledht5j+afmo++o=";
  };

  patches = [
    # Fix crash with EWS and libxml2.12.
    (fetchpatch {
      url = "https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/commit/b9638e2418408be4906752297e700506766dcf20.patch";
      hash = "sha256-l9+qS9WF3RuG9NtQQzSjpFSLNJV4FkXxOsLKYbINqrQ=";
    })
  ];

  mesonFlags = [
    "-Dfedora=false" # not useful in NixOS or for NixOS users.
    "-Dgoabackend=${lib.boolToString enableBackend}"