nixpkgs/pkgs/applications/office/antiword/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
778 B
Nix
Raw Normal View History

2021-01-15 05:42:41 +00:00
{ lib, fetchurl, stdenv }:
stdenv.mkDerivation rec{
pname = "antiword";
version = "0.37";
src = fetchurl {
url = "http://www.winfield.demon.nl/linux/antiword-${version}.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
2017-04-20 22:39:56 +01:00
substituteInPlace Makefile --replace "gcc" "cc"
'';
patches = [ ./10_fix_buffer_overflow_wordole_c_CVE-2014-8123.patch ];
2019-11-04 11:23:53 +00:00
installTargets = [ "global_install" ];
meta = {
homepage = "http://www.winfield.demon.nl/";
description = "Convert MS Word documents to plain text or PostScript";
2021-01-15 05:42:41 +00:00
license = lib.licenses.gpl2;
2021-01-15 05:42:41 +00:00
platforms = with lib.platforms; linux ++ darwin;
};
}