summary refs log tree commit diff
path: root/pkgs/applications/misc/xpdf
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2005-12-02 23:21:40 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2005-12-02 23:21:40 +0000
commitdb8da13e0d4289ea42466f1eb7b346687e39f7a1 (patch)
treea8097a5cbe7f93ea4b6195fa38f42297e7049594 /pkgs/applications/misc/xpdf
parent6281842b45bc468c7b1762813feef82dea9d6932 (diff)
downloadnixpkgs-db8da13e0d4289ea42466f1eb7b346687e39f7a1.tar
nixpkgs-db8da13e0d4289ea42466f1eb7b346687e39f7a1.tar.gz
nixpkgs-db8da13e0d4289ea42466f1eb7b346687e39f7a1.tar.bz2
nixpkgs-db8da13e0d4289ea42466f1eb7b346687e39f7a1.tar.lz
nixpkgs-db8da13e0d4289ea42466f1eb7b346687e39f7a1.tar.xz
nixpkgs-db8da13e0d4289ea42466f1eb7b346687e39f7a1.tar.zst
nixpkgs-db8da13e0d4289ea42466f1eb7b346687e39f7a1.zip
* Added t1lib, a library for Type 1 font support. Enabled it in xpdf.
svn path=/nixpkgs/trunk/; revision=4328
Diffstat (limited to 'pkgs/applications/misc/xpdf')
-rw-r--r--pkgs/applications/misc/xpdf/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/applications/misc/xpdf/default.nix b/pkgs/applications/misc/xpdf/default.nix
index 8ed6ffc8dcb..5ec7cba94b5 100644
--- a/pkgs/applications/misc/xpdf/default.nix
+++ b/pkgs/applications/misc/xpdf/default.nix
@@ -1,9 +1,10 @@
-{ enableGUI ? true, enablePDFtoPPM ? true
-, stdenv, fetchurl, x11 ? null, motif ? null, freetype ? null
+{ enableGUI ? true, enablePDFtoPPM ? true, useT1Lib ? true
+, stdenv, fetchurl, x11 ? null, motif ? null, freetype ? null, t1lib ? null
 }:
 
 assert enableGUI -> x11 != null && motif != null && freetype != null;
 assert enablePDFtoPPM -> freetype != null;
+assert useT1Lib -> t1lib != null;
 
 stdenv.mkDerivation {
   name = "xpdf-3.01";
@@ -14,7 +15,9 @@ stdenv.mkDerivation {
     md5 = "e004c69c7dddef165d768b1362b44268";
   };
   
-  buildInputs = (if enableGUI then [x11 motif] else []);
+  buildInputs =
+    (if enableGUI then [x11 motif] else []) ++
+    (if useT1Lib then [t1lib] else []);
   freetype = if enableGUI || enablePDFtoPPM then freetype else null;
     
   configureFlags = "--enable-a4-paper"; /* We obey ISO standards! */