From 1d479088792e8a5999c4ffcb747653a53c1e78fe Mon Sep 17 00:00:00 2001 From: Nicolas Mattia Date: Sun, 21 Jan 2018 20:17:31 +0100 Subject: [PATCH] gpp: init at 2.25 and add @nmattia as maintainer (#34098) * maintainers: add nmattia * gpp: init at 2.25 GPP is a handy preprocessing tool, not yet present in the package set. --- lib/maintainers.nix | 1 + pkgs/development/tools/gpp/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 pkgs/development/tools/gpp/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index f839d025129e..9f9234f18a55 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -485,6 +485,7 @@ nico202 = "Nicolò Balzarotti "; NikolaMandic = "Ratko Mladic "; nixy = "Andrew R. M. "; + nmattia = "Nicolas Mattia "; nocoolnametom = "Tom Doggett "; notthemessiah = "Brian Cohen "; np = "Nicolas Pouillard "; diff --git a/pkgs/development/tools/gpp/default.nix b/pkgs/development/tools/gpp/default.nix new file mode 100644 index 000000000000..461110b63d71 --- /dev/null +++ b/pkgs/development/tools/gpp/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, autoreconfHook }: + +stdenv.mkDerivation rec { + name = "gpp-${version}"; + version = "2.25"; + + src = fetchFromGitHub { + owner = "logological"; + repo = "gpp"; + rev = "96c5dd8905384ea188f380f51d24cbd7fd58f642"; + sha256 = "0bvhnx3yfhbfiqqhhz6k2a596ls5rval7ykbp3jl5b6062xj861b"; + }; + + nativeBuildInputs = [ autoreconfHook ]; + + installCheckPhase = "$out/bin/gpp --help"; + doInstallCheck = true; + + meta = with stdenv.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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 25fb245eb9e8..6318a56fedf4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2468,6 +2468,8 @@ with pkgs; gpodder = callPackage ../applications/audio/gpodder { }; + gpp = callPackage ../development/tools/gpp { }; + gpredict = callPackage ../applications/science/astronomy/gpredict { }; gptfdisk = callPackage ../tools/system/gptfdisk { };