diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2018-03-23 10:22:27 +0100 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2018-03-23 10:23:42 +0100 |
commit | e9817b2a76a42c2bf05bda551e3b84c879fbd70d (patch) | |
tree | 32c277f40bb3776b677cca73ebf36dc7d231242c /pkgs/development/libraries/poppler | |
parent | 988bcca05cdad2f26282cf037a192a8816ea12c9 (diff) | |
download | nixpkgs-e9817b2a76a42c2bf05bda551e3b84c879fbd70d.tar nixpkgs-e9817b2a76a42c2bf05bda551e3b84c879fbd70d.tar.gz nixpkgs-e9817b2a76a42c2bf05bda551e3b84c879fbd70d.tar.bz2 nixpkgs-e9817b2a76a42c2bf05bda551e3b84c879fbd70d.tar.lz nixpkgs-e9817b2a76a42c2bf05bda551e3b84c879fbd70d.tar.xz nixpkgs-e9817b2a76a42c2bf05bda551e3b84c879fbd70d.tar.zst nixpkgs-e9817b2a76a42c2bf05bda551e3b84c879fbd70d.zip |
poppler_0_61: init at 0.61 (needed for LibreOffice Still)
Diffstat (limited to 'pkgs/development/libraries/poppler')
-rw-r--r-- | pkgs/development/libraries/poppler/0.61.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/development/libraries/poppler/0.61.nix b/pkgs/development/libraries/poppler/0.61.nix new file mode 100644 index 00000000000..072de0f9fa0 --- /dev/null +++ b/pkgs/development/libraries/poppler/0.61.nix @@ -0,0 +1,56 @@ +{ stdenv, lib, fetchurl, cmake, ninja, pkgconfig, libiconv, libintlOrEmpty +, zlib, curl, cairo, freetype, fontconfig, lcms, libjpeg, openjpeg +, withData ? true, poppler_data +, qt5Support ? false, qtbase ? null +, introspectionSupport ? false, gobjectIntrospection ? null +, utils ? false +, minimal ? false, suffix ? "glib" +}: + +let + version = "0.61.0"; + mkFlag = optset: flag: "-DENABLE_${flag}=${if optset then "on" else "off"}"; +in +stdenv.mkDerivation rec { + name = "poppler-${suffix}-${version}"; + + src = fetchurl { + url = "${meta.homepage}/poppler-${version}.tar.xz"; + sha256 = "0zrbb1b77k6bm2qdnra08jnbyllv6vj29790igmp6fzs59xf3kak"; + }; + + outputs = [ "out" "dev" ]; + + buildInputs = [ libiconv ] ++ libintlOrEmpty ++ lib.optional withData poppler_data; + + # TODO: reduce propagation to necessary libs + propagatedBuildInputs = with lib; + [ zlib freetype fontconfig libjpeg openjpeg ] + ++ optionals (!minimal) [ cairo lcms curl ] + ++ optional qt5Support qtbase + ++ optional introspectionSupport gobjectIntrospection; + + nativeBuildInputs = [ cmake ninja pkgconfig ]; + + cmakeFlags = [ + (mkFlag true "XPDF_HEADERS") + (mkFlag (!minimal) "GLIB") + (mkFlag (!minimal) "CPP") + (mkFlag (!minimal) "LIBCURL") + (mkFlag utils "UTILS") + (mkFlag qt5Support "QT5") + ]; + + meta = with lib; { + homepage = https://poppler.freedesktop.org/; + description = "A PDF rendering library"; + + longDescription = '' + Poppler is a PDF rendering library based on the xpdf-3.0 code base. + ''; + + license = licenses.gpl2; + platforms = platforms.all; + maintainers = with maintainers; [ ttuegel ]; + }; +} |