NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.29k stars 13.54k forks source link

Add package option for v2raya so it can use the xray package #271818

Open iopq opened 9 months ago

iopq commented 9 months ago

Issue description

Currently some features in v2raya depend on the xray core, but v2ray has been baked in without an option to change the package. There should be an option for the package that defaults to v2ray, but can be set to xray. Using an overlay doesn't work, it looks for loyalsoldier.dat file in the wrong location for some reason, and it's a bit complicated

Steps to reproduce

Try adding a reality server, it won't work because it's not aware of the protocol, it needs the xray core to work

iopq commented 7 months ago

@Eliot00 could you take a look at this

iopq commented 7 months ago

I made a NUR package with xray

https://github.com/iopq/nur-packages/blob/master/pkgs/xraya/default.nix

Eliot00 commented 7 months ago

@Eliot00 could you take a look at this

I'm sorry I don't have time recently.