at 22.05-pre 741 B view raw
1{ lib, stdenv, fetchurl, fetchpatch }: 2 3stdenv.mkDerivation rec { 4 pname = "mcpp"; 5 version = "2.7.2"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/mcpp/mcpp-${version}.tar.gz"; 9 sha256 = "0r48rfghjm90pkdyr4khxg783g9v98rdx2n69xn8f6c5i0hl96rv"; 10 }; 11 12 configureFlags = [ "--enable-mcpplib" ]; 13 14 patches = [ 15 (fetchpatch { 16 name = "CVE-2019-14274.patch"; 17 url = "https://github.com/h8liu/mcpp/commit/ea453aca2742be6ac43ba4ce0da6f938a7e5a5d8.patch"; 18 sha256 = "0svkdr3w9b45v6scgzvggw9nsh6a3k7g19fqk0w3vlckwmk5ydzr"; 19 }) 20 ]; 21 22 meta = with lib; { 23 homepage = "http://mcpp.sourceforge.net/"; 24 description = "A portable c preprocessor"; 25 license = licenses.bsd2; 26 platforms = platforms.unix; 27 }; 28}