about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libctemplate/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libctemplate/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/libctemplate/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libctemplate/default.nix b/nixpkgs/pkgs/development/libraries/libctemplate/default.nix
new file mode 100644
index 000000000000..2aa36bfe9914
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libctemplate/default.nix
@@ -0,0 +1,34 @@
+{ lib, stdenv, fetchFromGitHub, python3, autoconf, automake, libtool }:
+
+stdenv.mkDerivation rec {
+  pname = "ctemplate";
+  version = "2.4";
+
+  src = fetchFromGitHub {
+    owner = "OlafvdSpek";
+    repo = "ctemplate";
+    rev = "ctemplate-${version}";
+    sha256 = "1x0p5yym6vvcx70pm8ihnbxxrl2wnblfp72ih5vjyg8mzkc8cxrr";
+  };
+
+  nativeBuildInputs = [ python3 autoconf automake libtool ];
+
+  postPatch = ''
+    patchShebangs .
+  '';
+
+  preConfigure = ''
+    ./autogen.sh
+  '';
+
+  meta = {
+    description = "A simple but powerful template language for C++";
+    longDescription = ''
+      CTemplate is a simple but powerful template language for C++. It
+      emphasizes separating logic from presentation: it is impossible to
+      embed application logic in this template language.
+    '';
+    homepage = "https://github.com/OlafvdSpek/ctemplate";
+    license = lib.licenses.bsd3;
+  };
+}