SDL_image: use pkg-config

This commit is contained in:
Nick Cao 2021-12-16 15:20:29 +08:00 committed by ehmry
parent cef1694515
commit 4b18165b53

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, SDL, libpng, libjpeg, libtiff, giflib, libXpm }:
{ lib, stdenv, fetchurl, fetchpatch, SDL, libpng, libjpeg, libtiff, giflib, libXpm, pkg-config }:
stdenv.mkDerivation rec {
pname = "SDL_image";
@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
"--disable-tif-shared"
] ++ lib.optional stdenv.isDarwin "--disable-sdltest";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ SDL libpng libjpeg libtiff giflib libXpm ];
meta = with lib; {