5 libayatana-appindicator,
15 rustPlatform.buildRustPackage {
16 inherit version src meta;
17 pname = "${pname}-unwrapped";
18 sourceRoot = "${src.name}/src-tauri";
21 lockFile = ./Cargo-tauri.lock;
23 "sysproxy-0.3.0" = sysproxy-hash;
28 OPENSSL_NO_VENDOR = 1;
32 substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
33 --replace "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
34 substituteInPlace ./tauri.conf.json \
35 --replace-fail '"distDir": "../dist",' '"distDir": "${webui}",' \
36 --replace-fail '"beforeBuildCommand": "pnpm run web:build"' '"beforeBuildCommand": ""'
37 sed -i -e '/externalBin/d' -e '/resources/d' tauri.conf.json
42 rustPlatform.cargoSetupHook
51 install -DT icons/128x128@2x.png $out/share/icons/hicolor/128x128@2/apps/clash-verge.png
52 install -DT icons/128x128.png $out/share/icons/hicolor/128x128/apps/clash-verge.png
53 install -DT icons/32x32.png $out/share/icons/hicolor/32x32/apps/clash-verge.png
58 name = "clash-verge-rev";
59 exec = "clash-verge %u";
60 icon = "clash-verge-rev";
61 desktopName = "Clash Verge Rev";
62 genericName = meta.description;
63 mimeTypes = [ "x-scheme-handler/clash" ];