base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / _6 / _64gram / package.nix
blob422c6a3d57b9af5df3a8dd3403682803f25dcfa5
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   telegram-desktop,
7   withWebkit ? true,
8 }:
10 telegram-desktop.override {
11   pname = "64gram";
12   inherit withWebkit;
13   unwrapped = telegram-desktop.unwrapped.overrideAttrs (old: rec {
14     pname = "64gram-unwrapped";
15     version = "1.1.45";
17     src = fetchFromGitHub {
18       owner = "TDesktop-x64";
19       repo = "tdesktop";
20       rev = "v${version}";
21       hash = "sha256-bDe4tmJRWnussa5QrBh2oStvIF7R5/nbPfljb3us3nk=";
22       fetchSubmodules = true;
23     };
25     patches = (old.patches or [ ]) ++ [
26       (fetchpatch {
27         url = "https://github.com/TDesktop-x64/tdesktop/commit/c996ccc1561aed089c8b596f6ab3844335bbf1df.patch";
28         revert = true;
29         hash = "sha256-Hz7BXl5z4owe31l9Je3QOXT8FAyKcbsXsKjGfCmXhzE=";
30       })
31     ];
33     cmakeFlags = (old.cmakeFlags or [ ]) ++ [
34       (lib.cmakeBool "DESKTOP_APP_DISABLE_AUTOUPDATE" true)
35       (lib.cmakeBool "disable_autoupdate" true)
36     ];
38     meta = {
39       description = "Unofficial Telegram Desktop providing Windows 64bit build and extra features";
40       license = lib.licenses.gpl3Only;
41       platforms = lib.platforms.all;
42       homepage = "https://github.com/TDesktop-x64/tdesktop";
43       changelog = "https://github.com/TDesktop-x64/tdesktop/releases/tag/v${version}";
44       maintainers = with lib.maintainers; [ clot27 ];
45       mainProgram = if stdenv.hostPlatform.isLinux then "telegram-desktop" else "Telegram";
46     };
47   });