1{ lib, stdenv, fetchFromGitHub, python3, autoconf, automake, libtool }:
2
3stdenv.mkDerivation rec {
4 pname = "ctemplate";
5 version = "2.4";
6
7 src = fetchFromGitHub {
8 owner = "OlafvdSpek";
9 repo = "ctemplate";
10 rev = "ctemplate-${version}";
11 sha256 = "1x0p5yym6vvcx70pm8ihnbxxrl2wnblfp72ih5vjyg8mzkc8cxrr";
12 };
13
14 nativeBuildInputs = [ python3 autoconf automake libtool ];
15
16 postPatch = ''
17 patchShebangs .
18 '';
19
20 preConfigure = ''
21 ./autogen.sh
22 '';
23
24 meta = {
25 description = "A simple but powerful template language for C++";
26 longDescription = ''
27 CTemplate is a simple but powerful template language for C++. It
28 emphasizes separating logic from presentation: it is impossible to
29 embed application logic in this template language.
30 '';
31 homepage = "https://github.com/OlafvdSpek/ctemplate";
32 license = lib.licenses.bsd3;
33 };
34}