2011-08-31 04:55:51 -07: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";
|
|
|
|
};
|
|
|
|
|
2016-09-16 19:49:23 -07:00
|
|
|
prePatch = ''
|
2011-08-31 05:06:27 -07:00
|
|
|
sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/share|$out/share|g" Makefile antiword.h
|
2017-04-20 14:39:56 -07:00
|
|
|
substituteInPlace Makefile --replace "gcc" "cc"
|
2011-08-31 05:06:27 -07:00
|
|
|
'';
|
|
|
|
|
2020-05-06 14:18:09 -07:00
|
|
|
patches = [ ./10_fix_buffer_overflow_wordole_c_CVE-2014-8123.patch ];
|
2015-03-09 10:27:25 -07:00
|
|
|
|
2019-11-04 03:23:53 -08:00
|
|
|
installTargets = [ "global_install" ];
|
2011-08-31 04:55:51 -07:00
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.winfield.demon.nl/";
|
2013-10-05 07:22:46 -07:00
|
|
|
description = "Convert MS Word documents to plain text or PostScript";
|
2011-08-31 04:55:51 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
|
2016-05-16 13:30:20 -07:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2017-04-20 14:39:56 -07:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2011-08-31 04:55:51 -07:00
|
|
|
};
|
|
|
|
}
|