14 libayatana-appindicator,
21 inherit (stdenv.hostPlatform) system;
22 selectSystem = attrs: attrs.${system};
23 suffix = selectSystem {
24 x86_64-linux = "amd64";
25 aarch64-linux = "arm64";
28 x86_64-linux = "sha256-1vJ2FcJOcpNyfSm5HyLkexsULBBPlI0AW2jXuhK8khA=";
29 aarch64-linux = "sha256-P+zCO6HxcQJAGIVxOSRga+1Bqtn31mw2v+/EyEDpgF8=";
33 url = "https://github.com/mihomo-party-org/mihomo-party/releases/download/v${version}/mihomo-party-linux-${version}-${suffix}.deb";
40 pname = "mihomo-party";
42 passthru.updateScript = ./update.sh;
56 (lib.getLib stdenv.cc.cc)
59 runtimeDependencies = map lib.getLib [
61 libayatana-appindicator
68 cp -r opt/mihomo-party usr/share $out
69 substituteInPlace $out/share/applications/mihomo-party.desktop \
70 --replace-fail "/opt/mihomo-party/mihomo-party" "mihomo-party"
77 makeWrapper $out/mihomo-party/mihomo-party $out/bin/mihomo-party \
78 --prefix LD_LIBRARY_PATH : "${
86 description = "Another Mihomo GUI";
87 homepage = "https://github.com/mihomo-party-org/mihomo-party";
88 mainProgram = "mihomo-party";
93 license = lib.licenses.gpl3Plus;
94 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
95 maintainers = with lib.maintainers; [ aucub ];