ayugram-desktop: fix build on darwin

This commit is contained in:
Sizhe Zhao
2026-05-11 21:09:28 +08:00
parent 169bb6b3f8
commit f124d8254f
@@ -1,7 +1,9 @@
{
lib,
fetchFromGitHub,
fetchpatch2,
nix-update-script,
stdenvNoCC,
telegram-desktop,
withWebkit ? true,
}:
@@ -22,6 +24,13 @@ telegram-desktop.override {
fetchSubmodules = true;
};
patches =
(previousAttrs.patches or [ ])
++ (lib.optional stdenvNoCC.hostPlatform.isDarwin (fetchpatch2 {
url = "https://github.com/telegramdesktop/tdesktop/commit/923efd9e7ef8ff72d9b83973502e587682119e54.patch?full_index=1";
hash = "sha256-XcmH9SSI3K2SsFjHDEMnKA6YOyWF1kRVJJAWP2/vdf8=";
}));
passthru.updateScript = nix-update-script { };
meta = previousAttrs.meta // {