From 8b057ae9d77e861413bea6e20f3209044226847e Mon Sep 17 00:00:00 2001 From: eilvelia Date: Thu, 1 May 2025 17:39:53 +0000 Subject: [PATCH] libtcod: fix build Fixes missing libX11 dependency after 7aeac03f40021f4b213d460ef5813e52184368db. Ignores the implicit-int and incompatible-pointer-types warnings. --- pkgs/by-name/li/libtcod/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/li/libtcod/package.nix b/pkgs/by-name/li/libtcod/package.nix index 78128320f587..75969c606f62 100644 --- a/pkgs/by-name/li/libtcod/package.nix +++ b/pkgs/by-name/li/libtcod/package.nix @@ -6,6 +6,7 @@ SDL, libGLU, libGL, + libX11, upx, zlib, }: @@ -36,10 +37,16 @@ stdenv.mkDerivation { SDL libGLU libGL + libX11 upx zlib ]; + env.NIX_CFLAGS_COMPILE = lib.concatStringsSep " " [ + "-Wno-error=implicit-int" + "-Wno-error=incompatible-pointer-types" + ]; + meta = { description = "API for roguelike games"; homepage = "http://roguecentral.org/doryen/libtcod/";