Unverified Commit 6be7c24c authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

warp-plus: 1.2.6-unstable-2025-09-13 -> 1.2.6-unstable-2025-10-28 (#456918)

parents c7f963fb eaa87043
Loading
Loading
Loading
Loading
+16 −17
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  buildGo124Module,
  fetchFromGitHub,

  nix-update-script,
  testers,
  warp-plus,
  versionCheckHook,
}:

buildGoModule rec {
# fails with go 1.25, downgrade to 1.24
# error tls.ConnectionState: struct field count mismatch: 17 vs 16
buildGo124Module (finalAttrs: {
  pname = "warp-plus";
  version = "1.2.6-unstable-2025-09-13";
  version = "1.2.6-unstable-2025-10-28";

  src = fetchFromGitHub {
    owner = "bepass-org";
    repo = "warp-plus";
    rev = "4af9b2abfc4e79dceea41ac577f1683f62f57b8c";
    hash = "sha256-7i/06Qn+BRH/bWel9OvgVUAZZSwL2Euv179JDJNn2EE=";
    rev = "3653f7519d2a08a36222accff6899522bb8b03d0";
    hash = "sha256-T0YTxQ7iciv5i7lw+bU00B6iYquzBwzYkAlOGZiKeWc=";
  };

  vendorHash = "sha256-GmxiQk50iQoH2J/qUVvl9RBz6aIQp8RURqTzrl6NdCY=";

  ldflags = [
    "-s"
    "-w"
    "-X main.version=${version}"
    "-X main.version=${finalAttrs.version}"
  ];

  patches = [
@@ -44,19 +44,18 @@ buildGoModule rec {
    in
    [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];

  passthru = {
    updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
    tests.version = testers.testVersion {
      package = warp-plus;
      command = "warp-plus version";
    };
  };
  nativeCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "version";
  doInstallCheck = true;

  passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };

  meta = {
    changelog = "https://github.com/bepass-org/warp-plus/releases";
    description = "Warp + Psiphon, an anti censorship utility for Iran";
    homepage = "https://github.com/bepass-org/warp-plus";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ phanirithvij ];
    mainProgram = "warp-plus";
  };
}
})