1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6}:
7
8stdenv.mkDerivation {
9 pname = "gpp";
10 version = "2.25";
11
12 src = fetchFromGitHub {
13 owner = "logological";
14 repo = "gpp";
15 rev = "96c5dd8905384ea188f380f51d24cbd7fd58f642";
16 sha256 = "0bvhnx3yfhbfiqqhhz6k2a596ls5rval7ykbp3jl5b6062xj861b";
17 };
18
19 nativeBuildInputs = [ autoreconfHook ];
20
21 installCheckPhase = "$out/bin/gpp --help";
22 doInstallCheck = true;
23
24 meta = with lib; {
25 description = "General-purpose preprocessor with customizable syntax";
26 mainProgram = "gpp";
27 homepage = "https://logological.org/gpp";
28 license = licenses.lgpl3;
29 maintainers = with maintainers; [ nmattia ];
30 platforms = with platforms; linux ++ darwin;
31 };
32}