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