electron_32: fix log spam when building on aarch64-linux (#378988)
[NixPkgs.git] / pkgs / by-name / _6 / _64gram / package.nix
blobfdb973da8264e49f4cbdded19fdc7a99ad1061c9
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   telegram-desktop,
6   withWebkit ? true,
7 }:
9 telegram-desktop.override {
10   pname = "64gram";
11   inherit withWebkit;
12   unwrapped = telegram-desktop.unwrapped.overrideAttrs (old: rec {
13     pname = "64gram-unwrapped";
14     version = "1.1.58";
16     src = fetchFromGitHub {
17       owner = "TDesktop-x64";
18       repo = "tdesktop";
19       tag = "v${version}";
20       hash = "sha256-RHybrvm5p8BUt5StT/NuR76f2y1CCICirTMjdeRLtkY=";
21       fetchSubmodules = true;
22     };
24     cmakeFlags = (old.cmakeFlags or [ ]) ++ [
25       (lib.cmakeBool "DESKTOP_APP_DISABLE_AUTOUPDATE" true)
26     ];
28     meta = {
29       description = "Unofficial Telegram Desktop providing Windows 64bit build and extra features";
30       license = lib.licenses.gpl3Only;
31       platforms = lib.platforms.all;
32       homepage = "https://github.com/TDesktop-x64/tdesktop";
33       changelog = "https://github.com/TDesktop-x64/tdesktop/releases/tag/v${version}";
34       maintainers = with lib.maintainers; [ clot27 ];
35       mainProgram = if stdenv.hostPlatform.isLinux then "telegram-desktop" else "Telegram";
36     };
37   });