xpdf: build with qt gui
This commit is contained in:
parent
35612ffb6c
commit
e42c62e05f
@ -1,9 +1,9 @@
|
|||||||
{ enableGUI ? true, enablePDFtoPPM ? true, useT1Lib ? false
|
{ enableGUI ? true, enablePDFtoPPM ? true, useT1Lib ? false
|
||||||
, stdenv, fetchurl, zlib, libpng, xlibsWrapper ? null, motif ? null, freetype ? null, t1lib ? null
|
, stdenv, fetchurl, zlib, libpng, freetype ? null, t1lib ? null
|
||||||
, base14Fonts ? null
|
, cmake, qtbase ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert enableGUI -> xlibsWrapper != null && motif != null && freetype != null;
|
assert enableGUI -> qtbase != null && freetype != null;
|
||||||
assert enablePDFtoPPM -> freetype != null;
|
assert enablePDFtoPPM -> freetype != null;
|
||||||
assert useT1Lib -> t1lib != null;
|
assert useT1Lib -> t1lib != null;
|
||||||
|
|
||||||
@ -17,8 +17,12 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "1mhn89738vjva14xr5gblc2zrdgzmpqbbjdflqdmpqv647294ggz";
|
sha256 = "1mhn89738vjva14xr5gblc2zrdgzmpqbbjdflqdmpqv647294ggz";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
cmakeFlags = ["-DSYSTEM_XPDFRC=/etc/xpdfrc" "-DA4_PAPER=ON"];
|
||||||
|
|
||||||
buildInputs = [ zlib libpng ] ++
|
buildInputs = [ zlib libpng ] ++
|
||||||
stdenv.lib.optionals enableGUI [xlibsWrapper motif] ++
|
stdenv.lib.optional enableGUI qtbase ++
|
||||||
stdenv.lib.optional useT1Lib t1lib ++
|
stdenv.lib.optional useT1Lib t1lib ++
|
||||||
stdenv.lib.optional enablePDFtoPPM freetype;
|
stdenv.lib.optional enablePDFtoPPM freetype;
|
||||||
|
|
||||||
@ -27,14 +31,6 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
configureFlags = "--enable-a4-paper";
|
|
||||||
|
|
||||||
postInstall = stdenv.lib.optionalString (base14Fonts != null) ''
|
|
||||||
substituteInPlace $out/etc/xpdfrc \
|
|
||||||
--replace /usr/local/share/ghostscript/fonts ${base14Fonts} \
|
|
||||||
--replace '#fontFile' fontFile
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.foolabs.com/xpdf/;
|
homepage = http://www.foolabs.com/xpdf/;
|
||||||
description = "Viewer for Portable Document Format (PDF) files";
|
description = "Viewer for Portable Document Format (PDF) files";
|
||||||
|
@ -11098,7 +11098,7 @@ with pkgs;
|
|||||||
dex-oidc = callPackage ../servers/dex { };
|
dex-oidc = callPackage ../servers/dex { };
|
||||||
|
|
||||||
dgraph = callPackage ../servers/dgraph { };
|
dgraph = callPackage ../servers/dgraph { };
|
||||||
|
|
||||||
dico = callPackage ../servers/dico { };
|
dico = callPackage ../servers/dico { };
|
||||||
|
|
||||||
dict = callPackage ../servers/dict {
|
dict = callPackage ../servers/dict {
|
||||||
@ -16924,9 +16924,7 @@ with pkgs;
|
|||||||
|
|
||||||
apvlv = callPackage ../applications/misc/apvlv { };
|
apvlv = callPackage ../applications/misc/apvlv { };
|
||||||
|
|
||||||
xpdf = callPackage ../applications/misc/xpdf {
|
xpdf = libsForQt5.callPackage ../applications/misc/xpdf { };
|
||||||
base14Fonts = "${ghostscript}/share/ghostscript/fonts";
|
|
||||||
};
|
|
||||||
|
|
||||||
xkb_switch = callPackage ../tools/X11/xkb-switch { };
|
xkb_switch = callPackage ../tools/X11/xkb-switch { };
|
||||||
|
|
||||||
@ -18684,7 +18682,7 @@ with pkgs;
|
|||||||
hplip_3_15_9 = callPackage ../misc/drivers/hplip/3.15.9.nix { };
|
hplip_3_15_9 = callPackage ../misc/drivers/hplip/3.15.9.nix { };
|
||||||
|
|
||||||
hplipWithPlugin_3_15_9 = hplip_3_15_9.override { withPlugin = true; };
|
hplipWithPlugin_3_15_9 = hplip_3_15_9.override { withPlugin = true; };
|
||||||
|
|
||||||
epkowa = callPackage ../misc/drivers/epkowa { };
|
epkowa = callPackage ../misc/drivers/epkowa { };
|
||||||
|
|
||||||
illum = callPackage ../tools/system/illum { };
|
illum = callPackage ../tools/system/illum { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user