8 , v2ray-domain-list-community
15 src = fetchFromGitHub {
19 sha256 = "sha256-C7N23s/GA66gQ5SVXtXcM9lXIjScR3pLYCrf0w2nHfY=";
23 inherit pname version;
26 packageJSON = ./package.json;
27 yarnLock = ./yarn.lock;
29 export NODE_OPTIONS=--openssl-legacy-provider
30 ln -s $src/postcss.config.js postcss.config.js
31 OUTPUT_DIR=$out yarn --offline build
38 assetsDir = symlinkJoin {
40 paths = [ v2ray-geoip v2ray-domain-list-community ];
45 inherit pname version;
47 src = "${src}/service";
48 vendorSha256 = "sha256-vnhqI9G/p+SLLA4sre2wfmg1RKIYZmzeL0pSTbHb+Ck=";
53 "-X github.com/v2rayA/v2rayA/conf.Version=${version}"
56 subPackages = [ "." ];
58 nativeBuildInputs = [ makeWrapper ];
60 cp -a ${web} server/router/web
64 install -Dm 444 ${src}/install/universal/v2raya.desktop -t $out/share/applications
65 install -Dm 444 ${src}/install/universal/v2raya.png -t $out/share/icons/hicolor/512x512/apps
66 substituteInPlace $out/share/applications/v2raya.desktop \
67 --replace 'Icon=/usr/share/icons/hicolor/512x512/apps/v2raya.png' 'Icon=v2raya'
69 wrapProgram $out/bin/v2rayA \
70 --prefix PATH ":" "${lib.makeBinPath [ v2ray ]}" \
71 --prefix XDG_DATA_DIRS ":" ${assetsDir}/share
75 description = "A Linux web GUI client of Project V which supports V2Ray, Xray, SS, SSR, Trojan and Pingtunnel";
76 homepage = "https://github.com/v2rayA/v2rayA";
77 mainProgram = "v2rayA";
78 license = licenses.agpl3Only;
79 platforms = platforms.linux;
80 maintainers = with maintainers; [ elliot ];