about summary refs log tree commit diff
path: root/pkgs/tools/misc/ttmkfdir
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-04-27 12:04:11 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-04-27 12:04:11 +0000
commit3e0708e505b46b8d279113b2227ace599b7eac62 (patch)
tree7fa233eec140f511301c4bc9075a10ec915aeec3 /pkgs/tools/misc/ttmkfdir
parent2dc368f084d9631eb3a0d19d42ea90b609684dd2 (diff)
Fixing ttmkfdir, with help of a modification in deb-package.
svn path=/nixpkgs/trunk/; revision=15335
Diffstat (limited to 'pkgs/tools/misc/ttmkfdir')
-rw-r--r--pkgs/tools/misc/ttmkfdir/cstring.patch12
-rw-r--r--pkgs/tools/misc/ttmkfdir/default.nix4
2 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/tools/misc/ttmkfdir/cstring.patch b/pkgs/tools/misc/ttmkfdir/cstring.patch
new file mode 100644
index 0000000000000..84f2621eaaae9
--- /dev/null
+++ b/pkgs/tools/misc/ttmkfdir/cstring.patch
@@ -0,0 +1,12 @@
+diff --git a/directory.cpp b/directory.cpp
+index 5f0d78a..b94cbe5 100644
+--- a/directory.cpp
++++ b/directory.cpp
+@@ -2,6 +2,7 @@
+ #include <dirent.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
++#include <cstring>
+ 
+ #include "directory.h"
+ 
diff --git a/pkgs/tools/misc/ttmkfdir/default.nix b/pkgs/tools/misc/ttmkfdir/default.nix
index 7daa3db515b29..6f90ca8eb0d3d 100644
--- a/pkgs/tools/misc/ttmkfdir/default.nix
+++ b/pkgs/tools/misc/ttmkfdir/default.nix
@@ -5,11 +5,11 @@ debBuild ({
 		url = http://ftp.de.debian.org/debian/pool/main/t/ttmkfdir/ttmkfdir_3.0.9.orig.tar.gz;
 		sha256 = "0n6bmmndmp4c1myisvv7cby559gzgvwsw4rfw065a3f92m87jxiq";
 	};
-  patch = 
-	fetchurl {
+  patch = fetchurl {
 		url = http://ftp.de.debian.org/debian/pool/main/t/ttmkfdir/ttmkfdir_3.0.9-5.1.diff.gz;
 		sha256 = "1500kwvhxfq85zg7nwnn9dlvjxyg2ni7as17gdfm67pl9a45q3w4";
 	};
+  patches = [ ./cstring.patch ];
   name = "ttf-mkfontdir-3.0.9-5.1";
   buildInputs = [fontconfig freetype libunwind libtool 
   	flex bison];