Skip to content

Commit

Permalink
_64gram: disable autoupdate without patching
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin committed Oct 30, 2024
1 parent 0fabe7e commit 50dcc38
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions pkgs/by-name/_6/_64gram/package.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, telegram-desktop
, nix-update-script
}:
Expand All @@ -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; {
Expand Down

0 comments on commit 50dcc38

Please sign in to comment.