warp-plus: prefer versionCheckHook instead of testers.testVersion

add changelog entry in package meta

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij
2025-10-31 13:03:34 +05:30
parent 14b11b6a9c
commit eaa8704336

View File

@@ -4,8 +4,7 @@
fetchFromGitHub, fetchFromGitHub,
nix-update-script, nix-update-script,
testers, versionCheckHook,
warp-plus,
}: }:
# fails with go 1.25, downgrade to 1.24 # fails with go 1.25, downgrade to 1.24
@@ -45,15 +44,14 @@ buildGo124Module (finalAttrs: {
in in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
passthru = { nativeCheckInputs = [ versionCheckHook ];
updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; versionCheckProgramArg = "version";
tests.version = testers.testVersion { doInstallCheck = true;
package = warp-plus;
command = "warp-plus version"; passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
};
};
meta = { meta = {
changelog = "https://github.com/bepass-org/warp-plus/releases";
description = "Warp + Psiphon, an anti censorship utility for Iran"; description = "Warp + Psiphon, an anti censorship utility for Iran";
homepage = "https://github.com/bepass-org/warp-plus"; homepage = "https://github.com/bepass-org/warp-plus";
license = lib.licenses.mit; license = lib.licenses.mit;