19 v2ray-domain-list-community,
22 v2ray-domain-list-community
28 version = "unstable-2023-07-11";
30 src = fetchFromGitHub {
33 rev = "b3080564809dd8aef864a54ca1b79f0984fe986b";
34 hash = "sha256-LwBjuX5x3kQcdEfPLEirWpkMqOigkhNoh/VNmBfPAzw=";
35 fetchSubmodules = true;
38 postPatch = lib.optionals stdenv.hostPlatform.isDarwin ''
39 substituteInPlace cmake/platforms/macos.cmake \
40 --replace \''${QV2RAY_QtX_DIR}/../../../bin/macdeployqt macdeployqt
43 assetsDrv = symlinkJoin {
44 name = "v2ray-assets";
49 "-DQV2RAY_DISABLE_AUTO_UPDATE=on"
50 "-DQV2RAY_USE_V5_CORE=on"
51 "-DQV2RAY_TRANSLATION_PATH=${placeholder "out"}/share/qv2ray/lang"
52 "-DQV2RAY_DEFAULT_VASSETS_PATH='${assetsDrv}/share/v2ray'"
53 "-DQV2RAY_DEFAULT_VCORE_PATH='${v2ray}/bin/v2ray'"
57 export _QV2RAY_BUILD_INFO_="Qv2ray Nixpkgs"
58 export _QV2RAY_BUILD_EXTRA_INFO_="(Nixpkgs build) nixpkgs"
78 description = "GUI frontend to v2ray";
79 homepage = "https://github.com/Qv2ray/Qv2ray";
80 license = licenses.gpl3Plus;
81 maintainers = with maintainers; [
85 platforms = platforms.all;
86 # never built on aarch64-darwin, x86_64-darwin since update to unstable-2022-09-25
87 broken = stdenv.hostPlatform.isDarwin;
88 mainProgram = "qv2ray";