File tree Expand file tree Collapse file tree 2 files changed +228
-93
lines changed Expand file tree Collapse file tree 2 files changed +228
-93
lines changed Original file line number Diff line number Diff line change 1010} :
1111let
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 ( _ : {
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 } ;
3848in
3949flutter . 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 = ''
You can’t perform that action at this time.
0 commit comments