about summary refs log tree commit diff
path: root/pkgs/applications/misc/xpdf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/misc/xpdf/default.nix')
-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 8ed6ffc8dcba..5ec7cba94b58 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! */