From a218085aa04e68a4834d67a45517c7918d782299 Mon Sep 17 00:00:00 2001 From: Xiangyan Sun Date: Mon, 4 May 2026 14:39:02 -0700 Subject: [PATCH] mlvwm: fix build with gcc15 --- pkgs/by-name/ml/mlvwm/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ml/mlvwm/package.nix b/pkgs/by-name/ml/mlvwm/package.nix index 1705496ec0c2..9c6fd1a00fed 100644 --- a/pkgs/by-name/ml/mlvwm/package.nix +++ b/pkgs/by-name/ml/mlvwm/package.nix @@ -21,6 +21,12 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "sha256-ElKmi+ANuB3LPwZTMcr5HEMESjDwENbYnNIGdRP24d0="; }; + postPatch = '' + # gcc15 + substituteInPlace mlvwm/functions.h \ + --replace-fail "void (*action)();" "void (*action)(char *);" + ''; + nativeBuildInputs = [ installShellFiles ]; buildInputs = [