1{ lib
2, stdenv
3, fetchFromGitHub
4}:
5
6stdenv.mkDerivation (finalAttrs: {
7 pname = "mcpp";
8 version = "2.7.2.1";
9
10 src = fetchFromGitHub {
11 owner = "museoa";
12 repo = "mcpp";
13 rev = finalAttrs.version;
14 hash= "sha256-T4feegblOeG+NU+c+PAobf8HT8KDSfcINkRAa1hNpkY=";
15 };
16
17 patches = [
18 ./readlink.patch
19 ];
20
21 configureFlags = [ "--enable-mcpplib" ];
22
23 meta = with lib; {
24 homepage = "https://github.com/museoa/mcpp";
25 description = "Matsui's C preprocessor";
26 license = licenses.bsd2;
27 maintainers = with maintainers; [ AndersonTorres ];
28 platforms = platforms.unix;
29 };
30})