Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / compilers / mcpp / default.nix
blobefb5972e5421469ecaa495b280b12c9d0e0c29f5
1 { lib, stdenv, fetchurl, fetchpatch }:
3 stdenv.mkDerivation rec {
4   pname = "mcpp";
5   version = "2.7.2";
7   src = fetchurl {
8     url = "mirror://sourceforge/mcpp/mcpp-${version}.tar.gz";
9     sha256 = "0r48rfghjm90pkdyr4khxg783g9v98rdx2n69xn8f6c5i0hl96rv";
10   };
12   configureFlags = [ "--enable-mcpplib" ];
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   ];
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   };