Commit 27f73850 authored by ccicnce113424's avatar ccicnce113424
Browse files

linux-wifi-hotspot: fix build with gcc 15

parent 16eb4dee
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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"