tree-wide: SDL may not have a .dev

This commit is contained in:
Peter Hoeg 2022-05-10 13:09:27 +08:00
parent 112e6456a3
commit 30d5b538fa

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation {
buildInputs = [ SDL SDL_gfx libjpeg libpng opencv ];
makeFlags = [ "PREFIX=$(out)" ];
NIX_CFLAGS_COMPILE = "-I${SDL.dev}/include/SDL -I${SDL_gfx}/include/SDL";
NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL}/include/SDL -I${SDL_gfx}/include/SDL";
# Disable building of linux-only demos on darwin systems
patches = lib.optionals stdenv.isDarwin [ ./0001-dont-build-demos.patch ];