nixpkgs/pkgs/development/tools/gpp/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
727 B
Nix

{ 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";
mainProgram = "gpp";
homepage = "https://logological.org/gpp";
license = licenses.lgpl3;
maintainers = with maintainers; [ nmattia ];
platforms = with platforms; linux ++ darwin;
};
}