From 20845cabfc58d693c0a35b06e48febc2c3f794d9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 4 Dec 2009 15:42:27 +0000 Subject: [PATCH] * Remove an unused file. svn path=/nixpkgs/trunk/; revision=18810 --- pkgs/tools/misc/ttmkfdir/default.nix | 47 ++++++++++++--------- pkgs/tools/misc/ttmkfdir/normal-builder.nix | 29 ------------- pkgs/top-level/all-packages.nix | 8 +--- 3 files changed, 28 insertions(+), 56 deletions(-) delete mode 100644 pkgs/tools/misc/ttmkfdir/normal-builder.nix diff --git a/pkgs/tools/misc/ttmkfdir/default.nix b/pkgs/tools/misc/ttmkfdir/default.nix index 52b344e69bf..1d633634e59 100644 --- a/pkgs/tools/misc/ttmkfdir/default.nix +++ b/pkgs/tools/misc/ttmkfdir/default.nix @@ -1,24 +1,31 @@ -args: with args; with debPackage; -debBuild ({ - src = - fetchurl { - url = http://ftp.de.debian.org/debian/pool/main/t/ttmkfdir/ttmkfdir_3.0.9.orig.tar.gz; - sha256 = "0n6bmmndmp4c1myisvv7cby559gzgvwsw4rfw065a3f92m87jxiq"; - }; - patch = fetchurl { - url = http://ftp.de.debian.org/debian/pool/main/t/ttmkfdir/ttmkfdir_3.0.9-5.1.diff.gz; - sha256 = "1500kwvhxfq85zg7nwnn9dlvjxyg2ni7as17gdfm67pl9a45q3w4"; - }; - patches = [ - /* also fixes some other compilation issues (freetype includes) */ - ./cstring.patch ]; +{ stdenv, fetchurl, freetype, fontconfig, libunwind, libtool, flex, bison }: + +stdenv.mkDerivation { name = "ttf-mkfontdir-3.0.9-5.1"; - buildInputs = [fontconfig freetype libunwind libtool - flex bison]; + + src = fetchurl { + url = http://ftp.de.debian.org/debian/pool/main/t/ttmkfdir/ttmkfdir_3.0.9.orig.tar.gz; + sha256 = "0n6bmmndmp4c1myisvv7cby559gzgvwsw4rfw065a3f92m87jxiq"; + }; + + # all the patches up from ttmkfdir-3.0.9/Makefile should be reviewed by someone + # who knows more about C/C++ .. + patches = + [ (fetchurl { + url = http://ftp.de.debian.org/debian/pool/main/t/ttmkfdir/ttmkfdir_3.0.9-5.1.diff.gz; + sha256 = "1500kwvhxfq85zg7nwnn9dlvjxyg2ni7as17gdfm67pl9a45q3w4"; + }) + + ./cstring.patch # also fixes some other compilation issues (freetype includes) + ]; + + preInstall = '' + ensureDir $out; makeFlags="DESTDIR=$out BINDIR=/bin" + ''; + + buildInputs = [freetype fontconfig libunwind libtool flex bison]; + meta = { description = "Create fonts.dir for TTF font directory."; }; - extraReplacements = ''sed -e 's/int isatty(int [^)]*)/& throw()/' ''; - omitConfigure = true; -} // args) - +} diff --git a/pkgs/tools/misc/ttmkfdir/normal-builder.nix b/pkgs/tools/misc/ttmkfdir/normal-builder.nix deleted file mode 100644 index 122ea47e33b..00000000000 --- a/pkgs/tools/misc/ttmkfdir/normal-builder.nix +++ /dev/null @@ -1,29 +0,0 @@ -args: with args; -stdenv.mkDerivation { - name = "ttf-mkfontdir-3.0.9-5.1"; - - src = fetchurl { - url = http://ftp.de.debian.org/debian/pool/main/t/ttmkfdir/ttmkfdir_3.0.9.orig.tar.gz; - sha256 = "0n6bmmndmp4c1myisvv7cby559gzgvwsw4rfw065a3f92m87jxiq"; - }; - # all the patches up from ttmkfdir-3.0.9/Makefile should be reviewed by someone - # who knows more about C/C++ .. - patches = [ - - (fetchurl { - url = http://ftp.de.debian.org/debian/pool/main/t/ttmkfdir/ttmkfdir_3.0.9-5.1.diff.gz; - sha256 = "1500kwvhxfq85zg7nwnn9dlvjxyg2ni7as17gdfm67pl9a45q3w4"; - }) - - ./cstring.patch /* also fixes some other compilation issues (freetype includes) */ ]; - - preInstall = '' - ensureDir $out; makeFlags="DESTDIR=$out BINDIR=/bin" - ''; - - buildInputs = [freetype fontconfig libunwind libtool flex bison]; - - meta = { - description = "Create fonts.dir for TTF font directory."; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e9e9278d3d2..2a68f87d4e9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1558,13 +1558,7 @@ let wxGUI = getConfig [ "truecrypt" "wxGUI" ] true; }; - /* don't have time to fix the builderDefs based expression - ttmkfdirX = import ../tools/misc/ttmkfdir { - inherit debPackage freetype fontconfig libunwind libtool bison; - flex = flex2534; - }; - */ - ttmkfdir = import ../tools/misc/ttmkfdir/normal-builder.nix { + ttmkfdir = import ../tools/misc/ttmkfdir { inherit stdenv fetchurl freetype fontconfig libunwind libtool bison; flex = flex2534; };