2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python3, autoconf, automake, libtool }:
|
2010-09-28 11:33:42 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ctemplate";
|
2020-12-24 19:11:22 +01:00
|
|
|
version = "2.4";
|
2014-12-22 05:26:17 +01:00
|
|
|
|
2020-12-24 19:11:22 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OlafvdSpek";
|
|
|
|
repo = "ctemplate";
|
|
|
|
rev = "ctemplate-${version}";
|
|
|
|
sha256 = "1x0p5yym6vvcx70pm8ihnbxxrl2wnblfp72ih5vjyg8mzkc8cxrr";
|
2014-12-22 05:26:17 +01:00
|
|
|
};
|
|
|
|
|
2020-12-24 19:11:22 +01:00
|
|
|
nativeBuildInputs = [ python3 autoconf automake libtool ];
|
2014-12-22 05:26:17 +01:00
|
|
|
|
2015-01-08 10:26:49 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2020-12-24 19:11:22 +01:00
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2010-09-28 11:33:42 +02:00
|
|
|
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
|
2014-12-22 05:26:17 +01:00
|
|
|
embed application logic in this template language.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/OlafvdSpek/ctemplate";
|
2021-01-21 18:00:13 +01:00
|
|
|
license = lib.licenses.bsd3;
|
2010-09-28 11:33:42 +02:00
|
|
|
};
|
|
|
|
}
|