From 2f57f6eab42a82e7a3f1858744b56592010b1c98 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 22 Oct 2023 00:32:50 +0000 Subject: [PATCH 1/3] v2ray: 5.7.0 -> 5.8.0 https://github.com/v2fly/v2ray-core/compare/v5.7.0...v5.8.0 Fixes https://hydra.nixos.org/build/239295592/nixlog/1 --- pkgs/tools/networking/v2ray/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/v2ray/default.nix b/pkgs/tools/networking/v2ray/default.nix index cb0132a64ad2..34f1fd483351 100644 --- a/pkgs/tools/networking/v2ray/default.nix +++ b/pkgs/tools/networking/v2ray/default.nix @@ -6,18 +6,18 @@ buildGoModule rec { pname = "v2ray-core"; - version = "5.7.0"; + version = "5.8.0"; src = fetchFromGitHub { owner = "v2fly"; repo = "v2ray-core"; rev = "v${version}"; - hash = "sha256-gdDV5Cd/DjEqSiOF7j5a8QLtdJiFeNCnHoA4XD+yiGA="; + hash = "sha256-fMAPlPn53GkYKpraRS58XTF//IMZtzssaQpBkirEWfw="; }; # `nix-update` doesn't support `vendorHash` yet. # https://github.com/Mic92/nix-update/pull/95 - vendorHash = "sha256-uq0v14cRGmstJabrERsa+vFRX6Bg8+5CU6iV8swrL/I="; + vendorHash = "sha256-un3faML5u9kmlsJw/hitoRcGYtVukF+V/dJMFyGhr8Q="; ldflags = [ "-s" "-w" "-buildid=" ]; From 6cebc9e8e21be46ebf0db37a2005b006b4e26f31 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 26 Oct 2023 21:32:05 +0800 Subject: [PATCH 2/3] qv2ray: unstable-2023-06-09 -> unstable-2023-07-11 https://github.com/Qv2ray/Qv2ray/commit/b3080564809dd8aef864a54ca1b79f0984fe986b Fixes: /build/source/src/base/Qv2rayLog.hpp:17:29: error: expected primary-expression before ',' token 17 | #define ___LOG_EXPAND(___x) , QPair(std::string(#___x), [&] { return ___x; }()) | ^ /build/source/src/base/Qv2rayLog.hpp:17:63: error: expected primary-expression before ')' token 17 | #define ___LOG_EXPAND(___x) , QPair(std::string(#___x), [&] { return ___x; }()) | ^ /build/source/src/base/Qv2rayLog.hpp:17:64: error: template argument 2 is invalid 17 | #define ___LOG_EXPAND(___x) , QPair(std::string(#___x), [&] { return ___x; }()) | ^ --- pkgs/applications/networking/qv2ray/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/qv2ray/default.nix b/pkgs/applications/networking/qv2ray/default.nix index 038d904f453b..50143013b88f 100644 --- a/pkgs/applications/networking/qv2ray/default.nix +++ b/pkgs/applications/networking/qv2ray/default.nix @@ -21,13 +21,13 @@ mkDerivation rec { pname = "qv2ray"; - version = "unstable-2023-06-09"; + version = "unstable-2023-07-11"; src = fetchFromGitHub { owner = "Qv2ray"; repo = "Qv2ray"; - rev = "aea9981cc28fe25de55207b93d86036b30d467d2"; - hash = "sha256-ySXAF6fkkKsafuSa3DxkOuRjSyiCDUZRevcfJRp7LPM="; + rev = "b3080564809dd8aef864a54ca1b79f0984fe986b"; + hash = "sha256-LwBjuX5x3kQcdEfPLEirWpkMqOigkhNoh/VNmBfPAzw="; fetchSubmodules = true; }; From dfcfab99863cfe3b64c24248b48e0237dfc47c29 Mon Sep 17 00:00:00 2001 From: Elliot Date: Tue, 12 Sep 2023 20:09:12 +0800 Subject: [PATCH 3/3] v2raya: 2.0.5 -> 2.2.4 https://github.com/v2rayA/v2rayA/compare/v2.0.5...v2.2.4 This fixes startup issue with go 1.21, see upstream issue 1017. Co-authored-by: Bobby Rong --- pkgs/tools/networking/v2raya/default.nix | 13 ++++++++----- pkgs/tools/networking/v2raya/package.json | 3 +++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/networking/v2raya/default.nix b/pkgs/tools/networking/v2raya/default.nix index a2d539326e3c..c861fd68c8bd 100644 --- a/pkgs/tools/networking/v2raya/default.nix +++ b/pkgs/tools/networking/v2raya/default.nix @@ -11,13 +11,13 @@ }: let pname = "v2raya"; - version = "2.0.5"; + version = "2.2.4"; src = fetchFromGitHub { owner = "v2rayA"; repo = "v2rayA"; rev = "v${version}"; - hash = "sha256-oMH4FutgI5mLz2sxDdPFUyDd80xT32r51HEQYhhnvcU="; + hash = "sha256-X2fCp9uVdt7fIW1C/tdRK1Tmr8mq6VBk6UBnt99E+1c="; postFetch = "sed -i -e 's/npmmirror/yarnpkg/g' $out/gui/yarn.lock"; }; guiSrc = "${src}/gui"; @@ -30,17 +30,20 @@ let offlineCache = fetchYarnDeps { yarnLock = "${guiSrc}/yarn.lock"; - sha256 = "sha256-hVtETKhG9kX/4a4uO/aQ9sN2eTF6aAYaKDSHJIa0eWQ="; + sha256 = "sha256-pB0B5Iy6dLfU5CL2E9OBQGJKLJqYQRwPxx9aaCDg1Qk="; }; buildPhase = '' - export NODE_OPTIONS=--openssl-legacy-provider + runHook preBuild OUTPUT_DIR=$out yarn --offline build + runHook postBuild ''; configurePhase = '' + runHook preConfigure cp -r $node_modules node_modules chmod +w node_modules + runHook postConfigure ''; distPhase = "true"; @@ -59,7 +62,7 @@ buildGoModule { inherit pname version; src = "${src}/service"; - vendorHash = "sha256-nI+nqftJybAGcHCTMVjYPuLHxqE/kyjUzkspnkzUi+g="; + vendorHash = "sha256-lK6oTI9o8oLXPPMFO/Q97tIsdRd9smUk1v7GwwCFitg="; ldflags = [ "-s" diff --git a/pkgs/tools/networking/v2raya/package.json b/pkgs/tools/networking/v2raya/package.json index 55c1c4705660..3886aaa1616c 100644 --- a/pkgs/tools/networking/v2raya/package.json +++ b/pkgs/tools/networking/v2raya/package.json @@ -8,6 +8,9 @@ "build": "vue-cli-service build", "lint": "vue-cli-service lint" }, + "resolutions": { + "@achrinza/node-ipc": "^10.1.9" + }, "dependencies": { "@mdi/font": "^5.8.55", "@nuintun/qrcode": "^3.3.0",