diff --git a/pkgs/development/libraries/gd/default.nix b/pkgs/development/libraries/gd/default.nix index 5759aa46d13f..7f7e000d16ea 100644 --- a/pkgs/development/libraries/gd/default.nix +++ b/pkgs/development/libraries/gd/default.nix @@ -1,9 +1,9 @@ { stdenv, fetchurl , pkgconfig , zlib -, libjpeg , libpng -, libwebp +, libjpeg ? null +, libwebp ? null , libtiff ? null , libXpm ? null , fontconfig @@ -20,7 +20,8 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ zlib fontconfig freetype libjpeg libpng libwebp libtiff libXpm ]; + buildInputs = [ zlib fontconfig freetype ]; + propagatedBuildInputs = [ libpng libjpeg libwebp libtiff libXpm ]; outputs = [ "dev" "out" "bin" ];