mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
lightway: init at 0-unstable-2025-09-04
Co-Authored-By: usertam <code@usertam.dev>
(cherry picked from commit 34e35a0ca6)
This commit is contained in:
committed by
github-actions[bot]
parent
cdaafcba03
commit
308a2b2938
59
pkgs/by-name/li/lightway/package.nix
Normal file
59
pkgs/by-name/li/lightway/package.nix
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
autoconf,
|
||||
automake,
|
||||
libtool,
|
||||
rustPlatform,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "lightway";
|
||||
version = "0-unstable-2025-09-04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "expressvpn";
|
||||
repo = "lightway";
|
||||
rev = "4eb836158607c83d47226703de5a043519586782";
|
||||
hash = "sha256-sNhTdJTxNxHMVswyzizgBfGbmJhYmMZY/5nVD7ScLjM=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-3/6yEyGntyxxCqrMy2M9dtV2pWiD4M0Rtnb52I4n9nU=";
|
||||
cargoDepsName = "lightway";
|
||||
|
||||
cargoBuildFlags = lib.cli.toGNUCommandLine { } {
|
||||
package = [
|
||||
"lightway-client"
|
||||
"lightway-server"
|
||||
];
|
||||
|
||||
features = lib.optionals stdenv.hostPlatform.isLinux [
|
||||
"io-uring"
|
||||
];
|
||||
};
|
||||
|
||||
# Some tests rely on debug_assert! and fail in release.
|
||||
# https://github.com/expressvpn/lightway/issues/274
|
||||
checkType = "debug";
|
||||
|
||||
# For wolfSSL.
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A modern VPN protocol in Rust";
|
||||
homepage = "https://expressvpn.com/lightway";
|
||||
license = lib.licenses.agpl3Only;
|
||||
maintainers = with lib.maintainers; [
|
||||
dustyhorizon
|
||||
usertam
|
||||
];
|
||||
platforms = with lib.platforms; darwin ++ linux;
|
||||
mainProgram = "lightway-client";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user