diff --git a/pkgs/by-name/_6/_64gram/package.nix b/pkgs/by-name/_6/_64gram/package.nix index b921efbf2dbcd7..e3d5a0e53385f5 100644 --- a/pkgs/by-name/_6/_64gram/package.nix +++ b/pkgs/by-name/_6/_64gram/package.nix @@ -1,7 +1,6 @@ { lib , stdenv , fetchFromGitHub -, fetchpatch , telegram-desktop , nix-update-script }: @@ -19,19 +18,14 @@ telegram-desktop.overrideAttrs (old: rec { hash = "sha256-vRiAIGY3CU5+hsdn8xiNbgvSM3eGRVwnvsSmSoaDN/k="; }; - patches = (old.patches or []) ++ [ - (fetchpatch { - url = "https://github.com/TDesktop-x64/tdesktop/commit/c996ccc1561aed089c8b596f6ab3844335bbf1df.patch"; - revert = true; - hash = "sha256-Hz7BXl5z4owe31l9Je3QOXT8FAyKcbsXsKjGfCmXhzE="; - }) - ]; - cmakeFlags = (old.cmakeFlags or []) ++ [ (lib.cmakeBool "DESKTOP_APP_DISABLE_AUTOUPDATE" true) - (lib.cmakeBool "disable_autoupdate" true) ]; + env.NIX_CFLAGS_COMPILE = toString ((lib.splitString " " (old.env.NIX_CFLAGS_COMPILE or "")) ++ [ + "-DTDESKTOP_DISABLE_AUTOUPDATE" + ]); + passthru.updateScript = nix-update-script {}; meta = with lib; {