From c3e1a9697d0e65808027a4910b3797fe1c0bd1a5 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 27 Oct 2022 07:58:23 +0100 Subject: [PATCH] eduke32: fix build by removing explicit header paths In https://github.com/NixOS/nixpkgs/pull/197798#issuecomment-1291196023 we noticed that `eduke32` fails to build as: source/build/include/sdl_inc.h:17:12: fatal error: SDL2/SDL.h: No such file or directory 17 | # include | ^~~~~~~~~~~~ It statred after https://github.com/NixOS/nixpkgs/pull/191724 where `NIX_CFLAGS_COMPILE` entries were cleaned up slightly. This change works build failure around. But I think it's a good change: there should be no reason to set SDL2 offset via forced include paths. --- pkgs/games/eduke32/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/games/eduke32/default.nix b/pkgs/games/eduke32/default.nix index ec65db97ce43..38bfed7ca7d8 100644 --- a/pkgs/games/eduke32/default.nix +++ b/pkgs/games/eduke32/default.nix @@ -58,8 +58,6 @@ in stdenv.mkDerivation rec { done ''; - NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2}/include/SDL2 -I${lib.getDev SDL2_mixer}/include/SDL2"; - makeFlags = [ "SDLCONFIG=${SDL2}/bin/sdl2-config" ] ++ lib.optionals stdenv.isDarwin [