about summary refs log tree commit diff
path: root/pkgs/applications/office
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2017-04-20 16:39:56 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2017-04-23 18:08:18 -0500
commit8d26be2ae622e47bad9bdf7ba8fc095cda80c548 (patch)
tree48f4914c4b6a8cc5f01163ae828a7588b5b58026 /pkgs/applications/office
parent1d84a914f56c297288be7d4edee428b74006aa64 (diff)
antiword: supports darwin
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r--pkgs/applications/office/antiword/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/office/antiword/default.nix b/pkgs/applications/office/antiword/default.nix
index 059c68b77e651..4858a9f8bb912 100644
--- a/pkgs/applications/office/antiword/default.nix
+++ b/pkgs/applications/office/antiword/default.nix
@@ -13,6 +13,7 @@ stdenv.mkDerivation {
 
   prePatch = ''
     sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/share|$out/share|g" Makefile antiword.h
+    substituteInPlace Makefile --replace "gcc" "cc"
   '';
 
   patches = [ ./10_fix_buffer_overflow_wordole_c.patch ];
@@ -25,6 +26,6 @@ stdenv.mkDerivation {
     license = stdenv.lib.licenses.gpl2;
 
     maintainers = [ stdenv.lib.maintainers.peti ];
-    platforms = stdenv.lib.platforms.linux;
+    platforms = with stdenv.lib.platforms; linux ++ darwin;
   };
 }