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