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.nix29
1 files changed, 29 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..94dc733a69b0
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libctemplate/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, python2 }:
+
+stdenv.mkDerivation rec {
+  name = "ctemplate-${version}";
+
+  version = "2.3";
+
+  src = fetchurl {
+    url = "https://github.com/OlafvdSpek/ctemplate/archive/ctemplate-${version}.tar.gz";
+    sha256 = "0mi5g2xlws10z1g4x0cj6kd1r673kkav35pgzyqxa1w47xnwprcr";
+  };
+
+  buildInputs = [ python2 ];
+
+  postPatch = ''
+    patchShebangs .
+  '';
+
+  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 = stdenv.lib.licenses.bsd3;
+  };
+}