|
1 | 1 | { |
2 | 2 | lib, |
3 | 3 | fetchFromGitHub, |
4 | | - flutter324, |
| 4 | + flutter327, |
5 | 5 | keybinder3, |
6 | 6 | libayatana-appindicator, |
7 | 7 | buildGoModule, |
8 | 8 | makeDesktopItem, |
9 | 9 | copyDesktopItems, |
10 | | - wrapGAppsHook3, |
11 | 10 | autoPatchelfHook, |
12 | 11 | }: |
| 12 | + |
13 | 13 | let |
14 | 14 | pname = "flclash"; |
15 | | - version = "0.8.70"; |
| 15 | + version = "0.8.76"; |
| 16 | + |
16 | 17 | src = |
17 | 18 | (fetchFromGitHub { |
18 | 19 | owner = "chen08209"; |
19 | 20 | repo = "FlClash"; |
20 | 21 | tag = "v${version}"; |
21 | | - hash = "sha256-6gDkRqbAGqwF+HCThWAHK0Jh/dxaYlnaYaAiXN48z5E="; |
| 22 | + hash = "sha256-LNHaleqh3eAQcfYSz7xIaWeNUtmlFXOyG2S7zz2+XeI="; |
22 | 23 | fetchSubmodules = true; |
23 | 24 | }).overrideAttrs |
24 | 25 | (_: { |
25 | 26 | GIT_CONFIG_COUNT = 1; |
26 | 27 | GIT_CONFIG_KEY_0 = "url.https://github.com/.insteadOf"; |
27 | 28 | GIT_CONFIG_VALUE_0 = "[email protected]:"; |
28 | 29 | }); |
| 30 | + |
| 31 | + metaCommon = { |
| 32 | + description = "Multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free"; |
| 33 | + homepage = "https://github.com/chen08209/FlClash"; |
| 34 | + license = with lib.licenses; [ gpl3Plus ]; |
| 35 | + maintainers = with lib.maintainers; [ ]; |
| 36 | + }; |
| 37 | + |
29 | 38 | libclash = buildGoModule { |
30 | | - inherit pname version src; |
| 39 | + inherit version src; |
| 40 | + pname = "libclash"; |
31 | 41 |
|
32 | | - modRoot = "./core"; |
| 42 | + modRoot = "core"; |
33 | 43 |
|
34 | | - vendorHash = "sha256-yam3DgY/dfwIRc7OvFltwX29x6xGlrrsK4Oj6oaGYRw="; |
| 44 | + vendorHash = "sha256-p6GE97n5/ZCIjgmfL//2doRW/PGpUtjeKxhRs/aveus="; |
35 | 45 |
|
36 | 46 | env.CGO_ENABLED = 0; |
37 | 47 |
|
|
44 | 54 | runHook postBuild |
45 | 55 | ''; |
46 | 56 |
|
47 | | - meta = { |
48 | | - description = "Multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free"; |
49 | | - homepage = "https://github.com/chen08209/FlClash"; |
50 | | - license = with lib.licenses; [ gpl3Plus ]; |
51 | | - maintainers = with lib.maintainers; [ ]; |
52 | | - }; |
| 57 | + meta = metaCommon; |
53 | 58 | }; |
54 | 59 | in |
55 | | -flutter324.buildFlutterApplication { |
| 60 | +flutter327.buildFlutterApplication { |
56 | 61 | inherit pname version src; |
57 | 62 |
|
58 | 63 | pubspecLock = lib.importJSON ./pubspec.lock.json; |
59 | 64 |
|
60 | 65 | nativeBuildInputs = [ |
61 | 66 | copyDesktopItems |
62 | | - wrapGAppsHook3 |
63 | 67 | autoPatchelfHook |
64 | 68 | ]; |
65 | 69 |
|
@@ -88,20 +92,21 @@ flutter324.buildFlutterApplication { |
88 | 92 | ]; |
89 | 93 |
|
90 | 94 | preBuild = '' |
91 | | - mkdir -p ./libclash/linux/ |
92 | | - cp ${libclash}/bin/FlClashCore ./libclash/linux/FlClashCore |
| 95 | + mkdir -p libclash/linux |
| 96 | + cp ${libclash}/bin/FlClashCore libclash/linux/FlClashCore |
93 | 97 | ''; |
94 | 98 |
|
95 | 99 | postInstall = '' |
96 | | - install -Dm644 ./assets/images/icon.png $out/share/pixmaps/flclash.png |
| 100 | + install -Dm644 assets/images/icon.png $out/share/pixmaps/flclash.png |
97 | 101 | ''; |
98 | 102 |
|
99 | | - meta = { |
100 | | - description = "Multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free"; |
101 | | - homepage = "https://github.com/chen08209/FlClash"; |
| 103 | + passthru = { |
| 104 | + inherit libclash; |
| 105 | + updateScript = ./update.sh; |
| 106 | + }; |
| 107 | + |
| 108 | + meta = metaCommon // { |
102 | 109 | mainProgram = "FlClash"; |
103 | | - license = with lib.licenses; [ gpl3Plus ]; |
104 | | - maintainers = with lib.maintainers; [ ]; |
105 | 110 | platforms = lib.platforms.linux; |
106 | 111 | }; |
107 | 112 | } |
0 commit comments