summary refs log tree commit diff
path: root/pkgs/development/tools/gpp
diff options
context:
space:
mode:
authorNicolas Mattia <nicolas@nmattia.com>2018-01-21 20:17:31 +0100
committerzimbatm <zimbatm@zimbatm.com>2018-01-21 19:17:31 +0000
commit1d479088792e8a5999c4ffcb747653a53c1e78fe (patch)
treedfb516104e4ef45abfabb49981f30fbbf4df3728 /pkgs/development/tools/gpp
parent4532826e99e1d0eda2044189538a99a0ac458af4 (diff)
downloadnixlib-1d479088792e8a5999c4ffcb747653a53c1e78fe.tar
nixlib-1d479088792e8a5999c4ffcb747653a53c1e78fe.tar.gz
nixlib-1d479088792e8a5999c4ffcb747653a53c1e78fe.tar.bz2
nixlib-1d479088792e8a5999c4ffcb747653a53c1e78fe.tar.lz
nixlib-1d479088792e8a5999c4ffcb747653a53c1e78fe.tar.xz
nixlib-1d479088792e8a5999c4ffcb747653a53c1e78fe.tar.zst
nixlib-1d479088792e8a5999c4ffcb747653a53c1e78fe.zip
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.
Diffstat (limited to 'pkgs/development/tools/gpp')
-rw-r--r--pkgs/development/tools/gpp/default.nix26
1 files changed, 26 insertions, 0 deletions
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;
+  };
+}