diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2017-08-28 22:08:01 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-08-28 22:08:01 +0100 |
commit | e42c62e05f47c221a393722456d97cac8043df94 (patch) | |
tree | b2443dd6b77ab6b4183eac3fa8d99646535d1822 /pkgs/applications/misc/xpdf | |
parent | 35612ffb6c9545e2533ee024d1cf1e580ad22095 (diff) | |
download | nixpkgs-e42c62e05f47c221a393722456d97cac8043df94.tar nixpkgs-e42c62e05f47c221a393722456d97cac8043df94.tar.gz nixpkgs-e42c62e05f47c221a393722456d97cac8043df94.tar.bz2 nixpkgs-e42c62e05f47c221a393722456d97cac8043df94.tar.lz nixpkgs-e42c62e05f47c221a393722456d97cac8043df94.tar.xz nixpkgs-e42c62e05f47c221a393722456d97cac8043df94.tar.zst nixpkgs-e42c62e05f47c221a393722456d97cac8043df94.zip |
xpdf: build with qt gui
Diffstat (limited to 'pkgs/applications/misc/xpdf')
-rw-r--r-- | pkgs/applications/misc/xpdf/default.nix | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/pkgs/applications/misc/xpdf/default.nix b/pkgs/applications/misc/xpdf/default.nix index ca6be8a08d6..ef031c4b9f4 100644 --- a/pkgs/applications/misc/xpdf/default.nix +++ b/pkgs/applications/misc/xpdf/default.nix @@ -1,9 +1,9 @@ { enableGUI ? true, enablePDFtoPPM ? true, useT1Lib ? false -, stdenv, fetchurl, zlib, libpng, xlibsWrapper ? null, motif ? null, freetype ? null, t1lib ? null -, base14Fonts ? null +, stdenv, fetchurl, zlib, libpng, freetype ? null, t1lib ? null +, cmake, qtbase ? null }: -assert enableGUI -> xlibsWrapper != null && motif != null && freetype != null; +assert enableGUI -> qtbase != null && freetype != null; assert enablePDFtoPPM -> freetype != null; assert useT1Lib -> t1lib != null; @@ -17,8 +17,12 @@ stdenv.mkDerivation { sha256 = "1mhn89738vjva14xr5gblc2zrdgzmpqbbjdflqdmpqv647294ggz"; }; + nativeBuildInputs = [ cmake ]; + + cmakeFlags = ["-DSYSTEM_XPDFRC=/etc/xpdfrc" "-DA4_PAPER=ON"]; + buildInputs = [ zlib libpng ] ++ - stdenv.lib.optionals enableGUI [xlibsWrapper motif] ++ + stdenv.lib.optional enableGUI qtbase ++ stdenv.lib.optional useT1Lib t1lib ++ stdenv.lib.optional enablePDFtoPPM freetype; @@ -27,14 +31,6 @@ stdenv.mkDerivation { 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 = { homepage = http://www.foolabs.com/xpdf/; description = "Viewer for Portable Document Format (PDF) files"; |