about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/gpp/default.nix
blob: 9e49b0c0284fd873735d13cce4751e1130b9d5a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:

stdenv.mkDerivation {
  pname = "gpp";
  version = "2.25";

  src = fetchFromGitHub {
    owner = "logological";
    repo = "gpp";
    rev = "96c5dd8905384ea188f380f51d24cbd7fd58f642";
    sha256 = "0bvhnx3yfhbfiqqhhz6k2a596ls5rval7ykbp3jl5b6062xj861b";
  };

  nativeBuildInputs = [ autoreconfHook ];

  installCheckPhase = "$out/bin/gpp --help";
  doInstallCheck = true;

  meta = with lib; {
    description = "General-purpose preprocessor with customizable syntax";
    homepage = "https://logological.org/gpp";
    license = licenses.lgpl3;
    maintainers = with maintainers; [ nmattia ];
    platforms = with platforms; linux ++ darwin;
  };
}