Author: simons
Date: Wed Aug 31 12:06:27 2011
New Revision: 28939
URL: https://svn.nixos.org/websvn/nix/?rev=28939&sc=1

Log:
antiword: patch source code so that the tool can find it's data files

Modified:
   nixpkgs/trunk/pkgs/applications/office/antiword/default.nix

Modified: nixpkgs/trunk/pkgs/applications/office/antiword/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/applications/office/antiword/default.nix Wed Aug 31 
11:55:51 2011        (r28938)
+++ nixpkgs/trunk/pkgs/applications/office/antiword/default.nix Wed Aug 31 
12:06:27 2011        (r28939)
@@ -11,7 +11,10 @@
     sha256 = "1b7mi1l20jhj09kyh0bq14qzz8vdhhyf35gzwsq43mn6rc7h0b4f";
   };
 
-  installFlags = "GLOBAL_INSTALL_DIR=$$out/bin 
GLOBAL_RESOURCES_DIR=$$out/share/antiword";
+  patchPhase = ''
+    sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/share|$out/share|g" 
Makefile antiword.h
+  '';
+
   installTargets = "global_install";
 
   meta = {
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to