3
0
Fork 0
forked from mirrors/nixpkgs

poppler: disable some dependencies for minimal config

lcms, openjpeg and curl don't seem to be so necessary.
This commit is contained in:
Vladimír Čunát 2016-02-10 12:07:15 +01:00
parent 7d4ebb526c
commit 076a09ee37

View file

@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
# TODO: reduce propagation to necessary libs
propagatedBuildInputs = with lib;
[ zlib freetype fontconfig libjpeg lcms curl openjpeg ]
++ optional (!minimal) cairo
[ zlib freetype fontconfig libjpeg ]
++ optionals (!minimal) [ cairo lcms curl openjpeg ]
++ optional qt4Support qt4
++ optional qt5Support qtbase;
@ -35,8 +35,11 @@ stdenv.mkDerivation rec {
"--enable-libcurl"
"--enable-zlib"
]
++ optionals minimal [ "--disable-poppler-glib" "--disable-poppler-cpp" ]
++ optional (!utils) "--disable-utils";
++ optionals minimal [
"--disable-poppler-glib" "--disable-poppler-cpp"
"--disable-libopenjpeg" "--disable-libcurl"
]
++ optional (!utils) "--disable-utils" ;
enableParallelBuilding = true;