10 , v2ray-domain-list-community
11 , assets ? [ v2ray-geoip v2ray-domain-list-community ]
15 assetsDrv = symlinkJoin {
16 name = "v2ray-assets";
25 src = fetchFromGitHub {
29 sha256 = "0g2bmy522lhip0rgb3hqyi3bidf4ljyjvvv3n1kb6lvm0p3br51b";
32 vendorSha256 = "sha256-QAF/05/5toP31a/l7mTIetFhXuAKsT69OI1K/gMXei0=";
34 nativeBuildInputs = [ makeWrapper ];
38 ldflags = [ "-s" "-w" "-buildid=" ];
39 subPackages = [ "main" ];
43 install -Dm555 "$GOPATH"/bin/main $out/bin/xray
47 assetsDrv = symlinkJoin {
48 name = "v2ray-assets";
53 wrapProgram $out/bin/xray \
54 --suffix XRAY_LOCATION_ASSET : $assetsDrv/share/v2ray
58 updateScript = nix-update-script {
64 description = "A platform for building proxies to bypass network restrictions. A replacement for v2ray-core, with XTLS support and fully compatible configuration";
65 homepage = "https://github.com/XTLS/Xray-core";
66 license = with lib.licenses; [ mpl20 ];
67 maintainers = with lib.maintainers; [ iopq ];