1{
2 lib,
3 telegram-desktop,
4 fetchFromGitHub,
5 withWebkit ? true,
6}:
7
8telegram-desktop.override {
9 pname = "materialgram";
10 inherit withWebkit;
11 unwrapped = telegram-desktop.unwrapped.overrideAttrs (
12 finalAttrs: previousAttrs: {
13 pname = "materialgram-unwrapped";
14 version = "5.16.4.1";
15
16 src = fetchFromGitHub {
17 owner = "kukuruzka165";
18 repo = "materialgram";
19 rev = "refs/tags/v${finalAttrs.version}";
20 hash = "sha256-sN+Asoy9oZ08wZv9y454HqBxkEK7Zt0ynmfyuzk/SBc=";
21 fetchSubmodules = true;
22 };
23
24 meta = previousAttrs.meta // {
25 description = "Telegram Desktop fork with material icons and some improvements";
26 longDescription = ''
27 Telegram Desktop fork with Material Design and other improvements,
28 which is based on the Telegram API and the MTProto secure protocol.
29 '';
30 homepage = "https://kukuruzka165.github.io/materialgram/";
31 changelog = "https://github.com/kukuruzka165/materialgram/releases/tag/v${finalAttrs.version}";
32 maintainers = with lib.maintainers; [
33 oluceps
34 aleksana
35 stellessia
36 ];
37 mainProgram = "materialgram";
38 };
39 }
40 );
41}