From 3f0acfdab32500384fdd06a2f6f9da69ed560286 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 16 Jan 2023 21:32:55 +0000 Subject: [PATCH] SDL_gfx: propagate SDL to -dev outputs `SDL_gfx.pc` refers to `sdl.pc`. In addition to that some `SDL_gfx` headers import `SDL.h` directly. I noticed it when attempted to build a small SDL demo project which imports only `SDL_gfx`. It out to have worked. Instead build fails as: $ SDL1_CFLAGS=$(shell pkg-config SDL_gfx --cflags) ... Package sdl was not found in the pkg-config search path. Perhaps you should add the directory containing `sdl.pc' to the PKG_CONFIG_PATH environment variable This change is enough to make it work. --- pkgs/development/libraries/SDL_gfx/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/SDL_gfx/default.nix b/pkgs/development/libraries/SDL_gfx/default.nix index 442d289de791..a8227e608964 100644 --- a/pkgs/development/libraries/SDL_gfx/default.nix +++ b/pkgs/development/libraries/SDL_gfx/default.nix @@ -9,6 +9,7 @@ stdenv.mkDerivation rec { sha256 = "0ijljhs0v99dj6y27hc10z6qchyp8gdp4199y6jzngy6dzxlzsvw"; }; + propagatedBuildInputs = [ SDL ]; buildInputs = [ SDL ] ; configureFlags = [ "--disable-mmx" ]