nixpkgs/pkgs/development/compilers/mcpp/default.nix

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

29 lines
741 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, fetchpatch }:
2014-01-31 01:52:12 +00:00
stdenv.mkDerivation rec {
2019-09-06 16:09:02 +00:00
pname = "mcpp";
version = "2.7.2";
2014-01-31 01:52:12 +00:00
src = fetchurl {
2019-09-06 16:09:02 +00:00
url = "mirror://sourceforge/mcpp/mcpp-${version}.tar.gz";
2014-01-31 01:52:12 +00:00
sha256 = "0r48rfghjm90pkdyr4khxg783g9v98rdx2n69xn8f6c5i0hl96rv";
};
configureFlags = [ "--enable-mcpplib" ];
patches = [
(fetchpatch {
name = "CVE-2019-14274.patch";
url = "https://github.com/h8liu/mcpp/commit/ea453aca2742be6ac43ba4ce0da6f938a7e5a5d8.patch";
sha256 = "0svkdr3w9b45v6scgzvggw9nsh6a3k7g19fqk0w3vlckwmk5ydzr";
})
];
meta = with lib; {
homepage = "http://mcpp.sourceforge.net/";
2014-01-31 01:52:12 +00:00
description = "A portable c preprocessor";
license = licenses.bsd2;
platforms = platforms.unix;
};
}