xmagnify: fix build with gcc15

This commit is contained in:
Xiangyan Sun
2026-04-20 22:58:10 -07:00
parent db985dfa6e
commit f77fd13576
+5 -1
View File
@@ -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