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