2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
2024-05-02 00:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "mcpp";
|
|
|
|
version = "2.7.2.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "museoa";
|
|
|
|
repo = "mcpp";
|
|
|
|
rev = finalAttrs.version;
|
2024-06-30 08:12:46 +00:00
|
|
|
hash = "sha256-T4feegblOeG+NU+c+PAobf8HT8KDSfcINkRAa1hNpkY=";
|
2024-05-02 00:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
patches = [ ./readlink.patch ];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--enable-mcpplib" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/museoa/mcpp";
|
|
|
|
description = "Matsui's C preprocessor";
|
|
|
|
mainProgram = "mcpp";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
})
|