Skip to content

Commit dfe5c76

Browse files
flclash: 0.8.66 -> 0.8.68 (#354587)
2 parents b64a65b + 40b1962 commit dfe5c76

File tree

2 files changed

+228
-93
lines changed

2 files changed

+228
-93
lines changed

pkgs/by-name/fl/flclash/package.nix

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
}:
1111
let
1212
pname = "flclash";
13-
version = "0.8.66";
13+
version = "0.8.68";
1414
src =
1515
(fetchFromGitHub {
1616
owner = "chen08209";
1717
repo = "FlClash";
1818
rev = "v${version}";
19-
hash = "sha256-LkaAALJcP3DGXBMZ3QWLUiyT9Kr4yTxKIRqYhrW1WOw=";
19+
hash = "sha256-0S3sNmOxM5SpRLpYzi4br5/PJnxDklFHsEAKiHd0vOM=";
2020
fetchSubmodules = true;
2121
}).overrideAttrs
2222
(_: {
@@ -27,13 +27,23 @@ let
2727
libclash = buildGoModule {
2828
inherit pname version src;
2929
modRoot = "./core";
30-
vendorHash = "sha256-K+PrLFvDHyaxf1NKzcqf0qmfQwT8rctScv1CN+TxY0M=";
30+
vendorHash = "sha256-BpZB+0r7x7Ntldimo/nHXIu98jwhcA53l3kMav9lHkA=";
3131
buildPhase = ''
3232
runHook preBuild
33+
3334
mkdir -p $out/lib
3435
go build -ldflags="-w -s" -tags=with_gvisor -buildmode=c-shared -o $out/lib/libclash.so
36+
3537
runHook postBuild
3638
'';
39+
40+
meta = {
41+
description = "Multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free";
42+
homepage = "https://github.com/chen08209/FlClash";
43+
license = with lib.licenses; [ gpl3Plus ];
44+
maintainers = with lib.maintainers; [ aucub ];
45+
platforms = lib.platforms.linux;
46+
};
3747
};
3848
in
3949
flutter.buildFlutterApplication {
@@ -58,10 +68,9 @@ flutter.buildFlutterApplication {
5868
})
5969
];
6070

61-
patchPhase = ''
62-
runHook prePatch
63-
substituteInPlace lib/clash/core.dart --replace-fail 'DynamicLibrary.open("libclash.so")' 'DynamicLibrary.open("${libclash}/lib/libclash.so")'
64-
runHook postPatch
71+
postPatch = ''
72+
substituteInPlace lib/clash/core.dart \
73+
--replace-fail 'DynamicLibrary.open("libclash.so")' 'DynamicLibrary.open("${libclash}/lib/libclash.so")'
6574
'';
6675

6776
preBuild = ''

0 commit comments

Comments
 (0)