2024-03-11 04:39:21 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-08-17 19:42:08 +00:00
|
|
|
, fetchpatch
|
2024-03-11 04:39:21 +00:00
|
|
|
, telegram-desktop
|
2024-04-10 12:26:33 +00:00
|
|
|
, nix-update-script
|
2024-03-11 04:39:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
telegram-desktop.overrideAttrs (old: rec {
|
2024-04-03 15:51:35 +00:00
|
|
|
pname = "64gram";
|
2024-10-29 10:59:42 +00:00
|
|
|
version = "1.1.43";
|
2024-03-11 04:39:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TDesktop-x64";
|
|
|
|
repo = "tdesktop";
|
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
fetchSubmodules = true;
|
2024-10-29 10:59:42 +00:00
|
|
|
hash = "sha256-vRiAIGY3CU5+hsdn8xiNbgvSM3eGRVwnvsSmSoaDN/k=";
|
2024-03-11 04:39:21 +00:00
|
|
|
};
|
|
|
|
|
2024-08-17 19:42:08 +00:00
|
|
|
patches = (old.patches or []) ++ [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/TDesktop-x64/tdesktop/commit/c996ccc1561aed089c8b596f6ab3844335bbf1df.patch";
|
|
|
|
revert = true;
|
|
|
|
hash = "sha256-Hz7BXl5z4owe31l9Je3QOXT8FAyKcbsXsKjGfCmXhzE=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = (old.cmakeFlags or []) ++ [
|
2024-10-30 08:51:50 +00:00
|
|
|
(lib.cmakeBool "DESKTOP_APP_DISABLE_AUTOUPDATE" true)
|
2024-08-17 19:42:08 +00:00
|
|
|
(lib.cmakeBool "disable_autoupdate" true)
|
|
|
|
];
|
|
|
|
|
2024-04-10 12:26:33 +00:00
|
|
|
passthru.updateScript = nix-update-script {};
|
|
|
|
|
2024-03-11 04:39:21 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Unofficial Telegram Desktop providing Windows 64bit build and extra features";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.all;
|
|
|
|
homepage = "https://github.com/TDesktop-x64/tdesktop";
|
|
|
|
changelog = "https://github.com/TDesktop-x64/tdesktop/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ clot27 ];
|
2024-11-02 21:11:50 +00:00
|
|
|
mainProgram = if stdenv.hostPlatform.isLinux then "telegram-desktop" else "Telegram";
|
2024-03-11 04:39:21 +00:00
|
|
|
};
|
|
|
|
})
|