-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.nix
47 lines (41 loc) · 1.04 KB
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, stdenv
, fetchFromGitHub
, fetchgit
, fetchpatch
, telegram-desktop
, nix-update-script
}:
let
tg_owt = fetchgit {
url = "https://github.com/kaeeraa/tg_owt";
hash = lib.fakeHash;
};
in
telegram-desktop.overrideAttrs rec {
pname = "AyuGramDesktop";
version = "5.4.1";
src = fetchFromGitHub {
owner = "AyuGram";
repo = "${pname}";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-7KmXA3EDlCszoUfQZg3UsKvfRCENy/KLxiE08J9COJ8=";
};
patches = [
./desktop.patch
./macos.patch
./scheme.patch
];
passthru.updateScript = nix-update-script {};
meta = with lib; {
description = "Desktop Telegram client with good customization and Ghost mode.";
license = licenses.gpl3Only;
platforms = platforms.all;
homepage = "https://github.com/AyuGram/AyuGramDesktop";
changelog = "https://github.com/AyuGram/AyuGramDesktop/releases/tag/v${version}";
maintainers = with maintainers; [ s0me1newithhand7s ];
mainProgram = "ayugram-desktop";
broken = stdenv.isDarwin;
};
}