From f6f5249ab30d3a8cd68ed6335913842a5b9b7bb4 Mon Sep 17 00:00:00 2001 From: DDoSolitary Date: Sun, 18 Aug 2024 03:42:08 +0800 Subject: [PATCH] _64gram: 1.1.31 -> 1.1.34 and disable self update --- pkgs/by-name/_6/_64gram/package.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/_6/_64gram/package.nix b/pkgs/by-name/_6/_64gram/package.nix index c28477659b49..e10414204a2d 100644 --- a/pkgs/by-name/_6/_64gram/package.nix +++ b/pkgs/by-name/_6/_64gram/package.nix @@ -1,13 +1,14 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , telegram-desktop , nix-update-script }: telegram-desktop.overrideAttrs (old: rec { pname = "64gram"; - version = "1.1.31"; + version = "1.1.34"; src = fetchFromGitHub { owner = "TDesktop-x64"; @@ -15,9 +16,21 @@ telegram-desktop.overrideAttrs (old: rec { rev = "v${version}"; fetchSubmodules = true; - hash = "sha256-xYCousLXV9TeQjDNiXkEMbTiiuusLc7Ib2xHkMYBD1M="; + hash = "sha256-DbHbhkInZi8B/0fvbCWutN4noEv7MZ+C5Eg7g+89Moo="; }; + 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 "disable_autoupdate" true) + ]; + passthru.updateScript = nix-update-script {}; meta = with lib; {