From 1d57d34285150d3086f320476fe6a4a64475b5c2 Mon Sep 17 00:00:00 2001 From: usertam Date: Wed, 17 Sep 2025 01:23:09 +0800 Subject: [PATCH] lightway: 0-unstable-2025-09-04 -> 0-unstable-2025-09-19 Also drop the debug flag and fix ARM builds. --- pkgs/by-name/li/lightway/package.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/li/lightway/package.nix b/pkgs/by-name/li/lightway/package.nix index 051d056855e6..0bf4c6a92840 100644 --- a/pkgs/by-name/li/lightway/package.nix +++ b/pkgs/by-name/li/lightway/package.nix @@ -10,17 +10,16 @@ rustPlatform.buildRustPackage { pname = "lightway"; - version = "0-unstable-2025-09-04"; + version = "0-unstable-2025-09-19"; src = fetchFromGitHub { owner = "expressvpn"; repo = "lightway"; - rev = "4eb836158607c83d47226703de5a043519586782"; - hash = "sha256-sNhTdJTxNxHMVswyzizgBfGbmJhYmMZY/5nVD7ScLjM="; + rev = "dac72eb8af0994de020d71d24114717ecfb9804d"; + hash = "sha256-oHxHJ4D/Xg/zAFiI0bMX3Dc05HXIjk+ZHuGY03cwY+c="; }; - cargoHash = "sha256-3/6yEyGntyxxCqrMy2M9dtV2pWiD4M0Rtnb52I4n9nU="; - cargoDepsName = "lightway"; + cargoHash = "sha256-RFlac10XFJXT3Giayy31kZ3Nn1Q+YsPt/zCdkSV0Atk="; cargoBuildFlags = lib.cli.toGNUCommandLine { } { package = [ @@ -33,9 +32,10 @@ rustPlatform.buildRustPackage { ]; }; - # Some tests rely on debug_assert! and fail in release. - # https://github.com/expressvpn/lightway/issues/274 - checkType = "debug"; + # Enable ARM crypto extensions, overrides the default stdenv.hostPlatform.gcc.arch. + env.NIX_CFLAGS_COMPILE = + with stdenv.hostPlatform; + lib.optionalString (isAarch && isLinux) "-march=${gcc.arch}+crypto"; # For wolfSSL. nativeBuildInputs = [