nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 921 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fetchpatch, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "catdoc"; 10 version = "0.95"; 11 12 src = fetchurl { 13 url = "http://ftp.wagner.pp.ru/pub/catdoc/${pname}-${version}.tar.gz"; 14 sha256 = "514a84180352b6bf367c1d2499819dfa82b60d8c45777432fa643a5ed7d80796"; 15 }; 16 17 patches = [ 18 (fetchpatch { 19 url = "https://sources.debian.org/data/main/c/catdoc/1:0.95-4.1/debian/patches/05-CVE-2017-11110.patch"; 20 sha256 = "1ljnwvssvzig94hwx8843b88p252ww2lbxh8zybcwr3kwwlcymx7"; 21 }) 22 ]; 23 24 # Remove INSTALL file to avoid `make` misinterpreting it as an up-to-date 25 # target on case-insensitive filesystems e.g. Darwin 26 preInstall = '' 27 rm -v INSTALL 28 ''; 29 30 configureFlags = [ "--disable-wordview" ]; 31 32 meta = { 33 description = "MS-Word/Excel/PowerPoint to text converter"; 34 platforms = lib.platforms.all; 35 license = lib.licenses.gpl2Only; 36 maintainers = [ ]; 37 }; 38}