diff options
author | Peter Simons <simons@cryp.to> | 2011-08-31 12:06:27 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2011-08-31 12:06:27 +0000 |
commit | 614551f9b4af13f5e19e8c3bf58f325b7672a87d (patch) | |
tree | b8fc3dbbb699457d0ddb05a76d3163102464cd86 /pkgs | |
parent | 577ddef0be7eba5ac1da20c4537a390644382305 (diff) |
antiword: patch source code so that the tool can find it's data files
svn path=/nixpkgs/trunk/; revision=28939
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/office/antiword/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/office/antiword/default.nix b/pkgs/applications/office/antiword/default.nix index e3f80d76c4edc..c4da2b609ce76 100644 --- a/pkgs/applications/office/antiword/default.nix +++ b/pkgs/applications/office/antiword/default.nix @@ -11,7 +11,10 @@ stdenv.mkDerivation { 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 = { |