forked from mirrors/nixpkgs
poppler: add Qt 5 version
This commit is contained in:
parent
d927da8dae
commit
3319507b70
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, fetchurl, fetchpatch, pkgconfig, cmake, libiconvOrEmpty, libintlOrEmpty
|
||||
, zlib, curl, cairo, freetype, fontconfig, lcms, libjpeg, openjpeg
|
||||
, qt4Support ? false, qt4 ? null
|
||||
, qt4Support ? false, qt4 ? null, qt5
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -71,4 +71,13 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
in { inherit poppler_glib poppler_qt4; } // poppler_glib
|
||||
poppler_qt5 = poppler_drv "qt5" {
|
||||
propagatedBuildInputs = [ qt5 poppler_glib ];
|
||||
postConfigure = ''
|
||||
mkdir -p "$out/lib/pkgconfig"
|
||||
install -c -m 644 poppler-qt5.pc "$out/lib/pkgconfig"
|
||||
cd qt5
|
||||
'';
|
||||
};
|
||||
|
||||
in { inherit poppler_glib poppler_qt4 poppler_qt5; } // poppler_glib
|
||||
|
|
|
@ -6856,6 +6856,7 @@ let
|
|||
|
||||
poppler = callPackage ../development/libraries/poppler { lcms = lcms2; };
|
||||
popplerQt4 = poppler.poppler_qt4;
|
||||
popplerQt5 = poppler.poppler_qt5;
|
||||
|
||||
popt = callPackage ../development/libraries/popt { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue