anchor.diff:  , gtk3
   , json-glib
   , libgee
  +, libhandy
   , libsoup
   , libxml2
   , meson
  
positive.code: , python3
  , vala
  , polkit
  , libhandy_0
  , wrapGAppsHook
  }:
  
  stdenv.mkDerivation rec {
    pname = "appcenter";
    version = "3.5.1";
  
    src = fetchFromGitHub {
      owner = "elementary";
      repo = pname;
      rev = version;
      sha256 = "MsaXdmL+M+NYAJrrwluleeNxqQg0soFbO/G/FqibBFI=";
    };
  
    patches = [
      # Allow build with appstream 0.14.x
      # https://github.com/elementary/appcenter/pull/1493
      (fetchpatch {
        url = "https://github.com/elementary/appcenter/commit/5807dd13fe3c715f26225aed8d7a0abdea0c2a64.patch";
        sha256 = "BvEahG9lU9ZdgooFDFhm5evRvnKVcmcHLdmZPb85gbo=";
      })
    ];
  
    passthru = {
      updateScript = nix-update-script {
  
negative.code:     gtk3
      json-glib
      libgee
      libhandy
      libsoup
      libxml2
      packagekit
  