2022-09-01 11:59:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2014-01-31 01:52:12 +00:00
|
|
|
|
2022-09-01 11:59:40 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-09-06 16:09:02 +00:00
|
|
|
pname = "mcpp";
|
2022-09-01 11:59:40 +00:00
|
|
|
version = "2.7.2.1";
|
2014-01-31 01:52:12 +00:00
|
|
|
|
2022-09-01 11:59:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "museoa";
|
|
|
|
repo = "mcpp";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash= "sha256-T4feegblOeG+NU+c+PAobf8HT8KDSfcINkRAa1hNpkY=";
|
2014-01-31 01:52:12 +00:00
|
|
|
};
|
|
|
|
|
2024-09-08 03:54:41 +00:00
|
|
|
env = lib.optionalAttrs stdenv.cc.isGNU {
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
|
|
|
|
};
|
|
|
|
|
2023-11-10 01:28:13 +00:00
|
|
|
patches = [
|
|
|
|
./readlink.patch
|
|
|
|
];
|
|
|
|
|
2014-01-31 01:52:12 +00:00
|
|
|
configureFlags = [ "--enable-mcpplib" ];
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2022-09-01 11:59:40 +00:00
|
|
|
homepage = "https://github.com/museoa/mcpp";
|
|
|
|
description = "Matsui's C preprocessor";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "mcpp";
|
2014-01-31 01:52:12 +00:00
|
|
|
license = licenses.bsd2;
|
2022-09-01 11:59:40 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2014-01-31 01:52:12 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2022-09-01 11:59:40 +00:00
|
|
|
})
|