{ webcord, substituteAll, lib, vencord-web-extension }:

my-webcord.overrideAttrs (old: {
  pname = "webcord-vencord";

  patches = (old.patches or [ ]) ++ [
    (substituteAll {
      src = ./add-extension.patch;
      vencord = vencord-web-extension;
    })
  ];

  meta = with lib;
    old.meta // {
      description = "Webcord with Vencord web extension";
      maintainers = with maintainers; [ FlafyDev NotAShelf ];
    };
})
