From 8d8a0e2a378479cab9f01ec7b3ac1c51f498ea20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Thu, 6 Jun 2024 23:04:32 +1000 Subject: [PATCH] x2vnc: set C standard Use the older standard. New compilers can't handle the old source. --- pkgs/tools/X11/x2vnc/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/X11/x2vnc/default.nix b/pkgs/tools/X11/x2vnc/default.nix index bb8525d30916..8debbae2d385 100644 --- a/pkgs/tools/X11/x2vnc/default.nix +++ b/pkgs/tools/X11/x2vnc/default.nix @@ -9,9 +9,11 @@ stdenv.mkDerivation rec { sha256 = "00bh9j3m6snyd2fgnzhj5vlkj9ibh69gfny9bfzlxbnivb06s1yw"; }; + env.NIX_CFLAGS_COMPILE = "-std=gnu89"; + buildInputs = with xorg; [ - libX11 xorgproto libXext libXrandr - ]; + libX11 xorgproto libXext libXrandr + ]; hardeningDisable = [ "format" ];