nixpkgs/pkgs/applications/office/antiword/default.nix
Peter Simons 476635afe1 Drop myself from meta.maintainers for most packages.
I'd like to reduce the number of Github notifications and
review requests I receive.
2021-10-14 11:01:27 +02:00

31 lines
770 B
Nix

{ lib, 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";
};
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_CVE-2014-8123.patch ];
installTargets = [ "global_install" ];
meta = {
homepage = "http://www.winfield.demon.nl/";
description = "Convert MS Word documents to plain text or PostScript";
license = lib.licenses.gpl2;
platforms = with lib.platforms; linux ++ darwin;
};
}