From 27f73850ce5617b1ba41141cc120fc76042df366 Mon Sep 17 00:00:00 2001 From: ccicnce113424 Date: Fri, 2 Jan 2026 16:41:57 +0800 Subject: [PATCH] linux-wifi-hotspot: fix build with gcc 15 --- pkgs/by-name/li/linux-wifi-hotspot/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/li/linux-wifi-hotspot/package.nix b/pkgs/by-name/li/linux-wifi-hotspot/package.nix index 4f10506fc3e3..2eda4a32df4d 100644 --- a/pkgs/by-name/li/linux-wifi-hotspot/package.nix +++ b/pkgs/by-name/li/linux-wifi-hotspot/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, which, pkg-config, glib, @@ -50,6 +51,13 @@ stdenv.mkDerivation (finalAttrs: { outputs = [ "out" ]; + patches = [ + (fetchpatch { + url = "https://github.com/lakinduakash/linux-wifi-hotspot/commit/a3fce4b3ee9371eeb7b300fa7e9f291d93986db3.patch"; + hash = "sha256-tvWoYvQELYVq1Cr6NG+9kafYFHZloNMuOvaPeIbYlSI="; + }) + ]; + postPatch = '' substituteInPlace ./src/scripts/Makefile \ --replace "etc" "$out/etc"