Skip to content

Commit

Permalink
warp-plus: init at 1.2.4 (#351439)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 27, 2024
2 parents 787a0f6 + 42a5e01 commit ce46149
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/by-name/wa/warp-plus/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
lib,
buildGoModule,
fetchFromGitHub,

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

buildGoModule rec {
pname = "warp-plus";
version = "1.2.4";

src = fetchFromGitHub {
owner = "bepass-org";
repo = "warp-plus";
rev = "v${version}";
hash = "sha256-fFyYch14JqXSmnplPJ8c3epOxromZmEJAdcuSgkKbcM=";
};

vendorHash = "sha256-/rBZqrX9xZT8yOZwynkOOQyPl0govNmvsEqWVxsuvB4=";

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

checkFlags =
let
# Skip tests that require network access
skippedTests = [
"TestConcurrencySafety"
"TestTwoDevicePing"
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];

passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion { package = warp-plus; };
};

meta = {
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; [ paveloom ];
mainProgram = "warp-plus";
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33229,6 +33229,10 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security Foundation;
};

warp-plus = callPackage ../by-name/wa/warp-plus/package.nix {
buildGoModule = buildGo122Module;
};

warpd = callPackage ../applications/misc/warpd { };

watershot = callPackage ../applications/misc/watershot { };
Expand Down

0 comments on commit ce46149

Please sign in to comment.