2011-08-31 12:55:51 +01:00
|
|
|
{ fetchurl, stdenv }:
|
|
|
|
|
|
|
|
let
|
|
|
|
name = "antiword-0.37";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.winfield.demon.nl/linux/${name}.tar.gz";
|
|
|
|
sha256 = "1b7mi1l20jhj09kyh0bq14qzz8vdhhyf35gzwsq43mn6rc7h0b4f";
|
|
|
|
};
|
|
|
|
|
2015-03-09 17:27:25 +00:00
|
|
|
preInstall = ''
|
2011-08-31 13:06:27 +01:00
|
|
|
sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/share|$out/share|g" Makefile antiword.h
|
|
|
|
'';
|
|
|
|
|
2015-03-09 17:27:25 +00:00
|
|
|
patches = [ ./10_fix_buffer_overflow_wordole_c.patch ];
|
|
|
|
|
2011-08-31 12:55:51 +01:00
|
|
|
installTargets = "global_install";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.winfield.demon.nl/";
|
2013-10-05 15:22:46 +01:00
|
|
|
description = "Convert MS Word documents to plain text or PostScript";
|
2011-08-31 12:55:51 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
|
2016-05-16 21:30:20 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2011-08-31 12:55:51 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|