diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2015-09-17 17:54:32 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-09-17 17:54:32 +0200 |
commit | fe5c8d78a062d605f0a69febc139f06001982160 (patch) | |
tree | 07fad952abf60664328163b3ea651fb7998af5be /pkgs/development | |
parent | fa33b083eb8f08f532e67efac264c866fb08bf51 (diff) | |
download | nixlib-fe5c8d78a062d605f0a69febc139f06001982160.tar nixlib-fe5c8d78a062d605f0a69febc139f06001982160.tar.gz nixlib-fe5c8d78a062d605f0a69febc139f06001982160.tar.bz2 nixlib-fe5c8d78a062d605f0a69febc139f06001982160.tar.lz nixlib-fe5c8d78a062d605f0a69febc139f06001982160.tar.xz nixlib-fe5c8d78a062d605f0a69febc139f06001982160.tar.zst nixlib-fe5c8d78a062d605f0a69febc139f06001982160.zip |
poppler: add _min variant that doesn't bring X stuff
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/poppler/default.nix | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/pkgs/development/libraries/poppler/default.nix b/pkgs/development/libraries/poppler/default.nix index ce63f5c9716e..9c22430a711f 100644 --- a/pkgs/development/libraries/poppler/default.nix +++ b/pkgs/development/libraries/poppler/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchurl, fetchpatch, pkgconfig, libiconv, libintlOrEmpty +{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, libiconv, libintlOrEmpty , zlib, curl, cairo, freetype, fontconfig, lcms, libjpeg, openjpeg -, qt4Support ? false, qt4 ? null, qt5Support ? false, qt5 ? null +, minimal ? false, qt4Support ? false, qt4 ? null, qt5Support ? false, qt5 ? null , utils ? false, suffix ? "glib" }: @@ -16,28 +16,31 @@ stdenv.mkDerivation rec { inherit sha256; }; - outputs = [ "out" "doc" ]; + outputs = [ "out" ] ++ lib.optional (!minimal) "doc"; patches = [ ./datadir_env.patch ]; - propagatedBuildInputs = with stdenv.lib; - [ zlib cairo freetype fontconfig libjpeg lcms curl openjpeg ] + # TODO: reduce propagation to necessary libs + propagatedBuildInputs = with lib; + [ zlib freetype fontconfig libjpeg lcms curl openjpeg ] + ++ optional (!minimal) cairo ++ optional qt4Support qt4 ++ optional qt5Support qt5.base; nativeBuildInputs = [ pkgconfig libiconv ] ++ libintlOrEmpty; - configureFlags = + configureFlags = with lib; [ "--enable-xpdf-headers" "--enable-libcurl" "--enable-zlib" ] - ++ stdenv.lib.optional (!utils) "--disable-utils"; + ++ optionals minimal [ "--disable-poppler-glib" "--disable-poppler-cpp" ] + ++ optional (!utils) "--disable-utils"; enableParallelBuilding = true; - meta = { + meta = with lib; { homepage = http://poppler.freedesktop.org/; description = "A PDF rendering library"; @@ -45,8 +48,8 @@ stdenv.mkDerivation rec { Poppler is a PDF rendering library based on the xpdf-3.0 code base. ''; - license = stdenv.lib.licenses.gpl2; - platforms = stdenv.lib.platforms.all; - maintainers = with stdenv.lib.maintainers; [ ttuegel ]; + license = licenses.gpl2; + platforms = platforms.all; + maintainers = with maintainers; [ ttuegel ]; }; } |