-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}"; | ||
sha256 = "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 = with lib; { | ||
description = "Warp + Psiphon, an anti censorship utility for Iran"; | ||
homepage = "https://github.com/bepass-org/warp-plus"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ paveloom ]; | ||
mainProgram = "warp-plus"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters