From 18493e297be88b6c3f8888c7a9dedc75cd69414b Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Sun, 26 Jan 2025 15:04:52 +0100 Subject: [PATCH] slurm-spank-x11: fix build with gcc-14 --- pkgs/by-name/sl/slurm-spank-x11/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/sl/slurm-spank-x11/package.nix b/pkgs/by-name/sl/slurm-spank-x11/package.nix index 072328288f4a..bd3ff6f9ae82 100644 --- a/pkgs/by-name/sl/slurm-spank-x11/package.nix +++ b/pkgs/by-name/sl/slurm-spank-x11/package.nix @@ -17,6 +17,9 @@ stdenv.mkDerivation rec { patches = [ ./hostlist.patch ]; + # Required for build with gcc-14 + env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; + buildPhase = '' gcc -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" \ -g -o slurm-spank-x11 slurm-spank-x11.c