summary refs log tree commit diff
path: root/pkgs/applications/office/antiword/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/office/antiword/default.nix')
-rw-r--r--pkgs/applications/office/antiword/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/office/antiword/default.nix b/pkgs/applications/office/antiword/default.nix
index f889490a862..ea36d59eea7 100644
--- a/pkgs/applications/office/antiword/default.nix
+++ b/pkgs/applications/office/antiword/default.nix
@@ -11,10 +11,12 @@ stdenv.mkDerivation {
     sha256 = "1b7mi1l20jhj09kyh0bq14qzz8vdhhyf35gzwsq43mn6rc7h0b4f";
   };
 
-  patchPhase = ''
+  preInstall = ''
     sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/share|$out/share|g" Makefile antiword.h
   '';
 
+  patches = [ ./10_fix_buffer_overflow_wordole_c.patch ];
+
   installTargets = "global_install";
 
   meta = {