Unverified Commit 39db3234 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

xmagnify: fix build with gcc15 (#511990)

parents 80769aed f77fd135
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -17,7 +17,11 @@ stdenv.mkDerivation (finalAttrs: {
    sha256 = "1ngnp5f5zl3v35vhbdyjpymy6mwrs0476fm5nd7dzkba7n841jdh";
  };

  prePatch = "substituteInPlace ./Makefile --replace /usr $out";
  prePatch = ''
    substituteInPlace Makefile --replace-fail /usr $out
    # gcc15
    substituteInPlace main.c --replace-fail 'handler ()' 'handler (int sig)'
  '';

  buildInputs = [
    libx11