From d56e3d6f5a5845b2101525bf6a5bee350d095e36 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 May 2006 14:53:08 +0000 Subject: [PATCH] * Use string interpolation. svn path=/nixpkgs/trunk/; revision=5243 --- pkgs/applications/misc/xpdf/builder.sh | 10 ---------- pkgs/applications/misc/xpdf/default.nix | 10 +++++++--- 2 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 pkgs/applications/misc/xpdf/builder.sh diff --git a/pkgs/applications/misc/xpdf/builder.sh b/pkgs/applications/misc/xpdf/builder.sh deleted file mode 100644 index a7fd6a6a51ea..000000000000 --- a/pkgs/applications/misc/xpdf/builder.sh +++ /dev/null @@ -1,10 +0,0 @@ -source $stdenv/setup - -if test -n "$freetype"; then - configureFlags="\ - --with-freetype2-library=$freetype/lib \ - --with-freetype2-includes=$freetype/include/freetype2 \ - $configureFlags" -fi - -genericBuild diff --git a/pkgs/applications/misc/xpdf/default.nix b/pkgs/applications/misc/xpdf/default.nix index d7a5cc1b8306..718e089abcc7 100644 --- a/pkgs/applications/misc/xpdf/default.nix +++ b/pkgs/applications/misc/xpdf/default.nix @@ -8,7 +8,6 @@ assert useT1Lib -> t1lib != null; stdenv.mkDerivation { name = "xpdf-3.01"; - builder = ./builder.sh; src = fetchurl { url = http://nix.cs.uu.nl/dist/tarballs/xpdf-3.01.tar.gz; @@ -18,7 +17,12 @@ stdenv.mkDerivation { 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! */ + configureFlags = + [ "--enable-a4-paper" ] /* We obey ISO standards! */ + ++ (if enablePDFtoPPM then [ + ("--with-freetype2-library=${freetype}/lib") + ("--with-freetype2-includes=${freetype}/include/freetype2") + ] else []); + }