mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
poppler: 21.05.0 -> 21.06.1
This commit is contained in:
parent
a4e85ae2b8
commit
004970b152
@ -1,44 +1,46 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
, lib
|
, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
|
, cairo
|
||||||
, cmake
|
, cmake
|
||||||
, ninja
|
, pcre
|
||||||
, pkg-config
|
, boost
|
||||||
|
, cups-filters
|
||||||
|
, curl
|
||||||
|
, fontconfig
|
||||||
|
, freetype
|
||||||
|
, inkscape
|
||||||
|
, lcms
|
||||||
, libiconv
|
, libiconv
|
||||||
, libintl
|
, libintl
|
||||||
, zlib
|
|
||||||
, curl
|
|
||||||
, cairo
|
|
||||||
, freetype
|
|
||||||
, fontconfig
|
|
||||||
, lcms
|
|
||||||
, libjpeg
|
, libjpeg
|
||||||
|
, ninja
|
||||||
, openjpeg
|
, openjpeg
|
||||||
|
, pkg-config
|
||||||
|
, scribusUnstable
|
||||||
|
, texlive
|
||||||
|
, zlib
|
||||||
, withData ? true, poppler_data
|
, withData ? true, poppler_data
|
||||||
, qt5Support ? false, qtbase ? null
|
, qt5Support ? false, qtbase ? null
|
||||||
, introspectionSupport ? false, gobject-introspection ? null
|
, introspectionSupport ? false, gobject-introspection ? null
|
||||||
, utils ? false, nss ? null
|
, utils ? false, nss ? null
|
||||||
, minimal ? false
|
, minimal ? false
|
||||||
, suffix ? "glib"
|
, suffix ? "glib"
|
||||||
, inkscape
|
|
||||||
, cups-filters
|
|
||||||
, texlive
|
|
||||||
, scribusUnstable
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
mkFlag = optset: flag: "-DENABLE_${flag}=${if optset then "on" else "off"}";
|
mkFlag = optset: flag: "-DENABLE_${flag}=${if optset then "on" else "off"}";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "poppler-${suffix}-${version}";
|
pname = "poppler-${suffix}";
|
||||||
version = "21.05.0"; # beware: updates often break cups-filters build, check texlive and scribusUnstable too!
|
version = "21.06.1"; # beware: updates often break cups-filters build, check texlive and scribusUnstable too!
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${meta.homepage}/poppler-${version}.tar.xz";
|
url = "https://poppler.freedesktop.org/poppler-${version}.tar.xz";
|
||||||
sha256 = "sha256-2v1Te2gPrRIVvED8U9HzjoRJ18GFvGDVqJ4dJskNvYw=";
|
sha256 = "sha256-hrCeWgLeQAgaORbvhxHFEo6vSx/FnV+H0Oxm8E9ZXbQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -48,6 +50,8 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
boost
|
||||||
|
pcre
|
||||||
libiconv
|
libiconv
|
||||||
libintl
|
libintl
|
||||||
] ++ lib.optional withData [
|
] ++ lib.optional withData [
|
||||||
@ -98,13 +102,10 @@ stdenv.mkDerivation rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://poppler.freedesktop.org/";
|
homepage = "https://poppler.freedesktop.org/";
|
||||||
description = "A PDF rendering library";
|
description = "A PDF rendering library";
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Poppler is a PDF rendering library based on the xpdf-3.0 code
|
Poppler is a PDF rendering library based on the xpdf-3.0 code base. In
|
||||||
base. In addition it provides a number of tools that can be
|
addition it provides a number of tools that can be installed separately.
|
||||||
installed separately.
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ ttuegel ] ++ teams.freedesktop.members;
|
maintainers = with maintainers; [ ttuegel ] ++ teams.freedesktop.members;
|
||||||
|
Loading…
Reference in New Issue
Block a user