6 libayatana-appindicator,
19 hash = "sha256-LkaAALJcP3DGXBMZ3QWLUiyT9Kr4yTxKIRqYhrW1WOw=";
20 fetchSubmodules = true;
24 GIT_CONFIG_KEY_0 = "url.https://github.com/.insteadOf";
25 GIT_CONFIG_VALUE_0 = "git@github.com:";
27 libclash = buildGoModule {
28 inherit pname version src;
30 vendorHash = "sha256-K+PrLFvDHyaxf1NKzcqf0qmfQwT8rctScv1CN+TxY0M=";
34 go build -ldflags="-w -s" -tags=with_gvisor -buildmode=c-shared -o $out/lib/libclash.so
39 flutter.buildFlutterApplication {
40 inherit pname version src;
47 genericName = "FlClash";
48 desktopName = "FlClash";
63 substituteInPlace lib/clash/core.dart --replace-fail 'DynamicLibrary.open("libclash.so")' 'DynamicLibrary.open("${libclash}/lib/libclash.so")'
68 mkdir -p ./libclash/linux/
69 cp ${libclash}/lib/libclash.so ./libclash/linux/libclash.so
73 mkdir -p $out/share/pixmaps/
74 cp ./assets/images/icon.png $out/share/pixmaps/FlClash.png
77 pubspecLock = lib.importJSON ./pubspec.lock.json;
85 libayatana-appindicator
89 description = "Multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free";
90 homepage = "https://github.com/chen08209/FlClash";
91 mainProgram = "FlClash";
92 license = with lib.licenses; [ gpl3Plus ];
93 maintainers = with lib.maintainers; [ aucub ];
94 platforms = lib.platforms.linux;