poppler_qt4: downgrade 0.62.0 → 0.61.1
Poppler 0.62 removes QT4 support. We would drop it but unfortunately, some things still rely on it.
This commit is contained in:
parent
1f6bdeaa97
commit
10a4edb927
2 changed files with 45 additions and 4 deletions
44
pkgs/development/libraries/poppler/qt4.nix
Normal file
44
pkgs/development/libraries/poppler/qt4.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
# TODO: get rid of this (https://github.com/NixOS/nixpkgs/issues/32883)
|
||||
{ stdenv, lib, fetchurl, cmake, ninja, pkgconfig, libiconv, libintlOrEmpty
|
||||
, zlib, curl, cairo, freetype, fontconfig, lcms2, libjpeg, openjpeg
|
||||
, poppler_data, qt4
|
||||
}:
|
||||
|
||||
let
|
||||
# Last version supporting QT4
|
||||
version = "0.61.1";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "poppler-qt4-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "${meta.homepage}/poppler-${version}.tar.xz";
|
||||
sha256 = "1afdrxxkaivvviazxkg5blsf2x24sjkfj92ib0d3q5pm8dihjrhj";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
buildInputs = [ libiconv poppler_data ] ++ libintlOrEmpty;
|
||||
|
||||
propagatedBuildInputs = [ zlib freetype fontconfig libjpeg openjpeg cairo lcms2 curl qt4 ];
|
||||
|
||||
nativeBuildInputs = [ cmake ninja pkgconfig ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DENABLE_XPDF_HEADERS=on"
|
||||
"-DENABLE_UTILS=off"
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -10573,10 +10573,7 @@ with pkgs;
|
|||
suffix = "min";
|
||||
};
|
||||
|
||||
poppler_qt4 = poppler.override {
|
||||
qt4Support = true;
|
||||
suffix = "qt4";
|
||||
};
|
||||
poppler_qt4 = callPackage ../development/libraries/poppler/qt4.nix { };
|
||||
|
||||
poppler_utils = poppler.override { suffix = "utils"; utils = true; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue