2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "catdoc";
|
|
|
|
version = "0.95";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.wagner.pp.ru/pub/catdoc/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "514a84180352b6bf367c1d2499819dfa82b60d8c45777432fa643a5ed7d80796";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/c/catdoc/1:0.95-4.1/debian/patches/05-CVE-2017-11110.patch";
|
|
|
|
sha256 = "1ljnwvssvzig94hwx8843b88p252ww2lbxh8zybcwr3kwwlcymx7";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
# Remove INSTALL file to avoid `make` misinterpreting it as an up-to-date
|
|
|
|
# target on case-insensitive filesystems e.g. Darwin
|
|
|
|
preInstall = ''
|
|
|
|
rm -v INSTALL
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = [ "--disable-wordview" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "MS-Word/Excel/PowerPoint to text converter";
|
|
|
|
platforms = platforms.all;
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [];
|
|
|
|
};
|
|
|
|
}
|