2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python3, autoconf, automake, libtool }:
|
2010-09-28 09:33:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00: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 09:33:42 +00: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 01:11:51 +00:00
|
|
|
homepage = "https://github.com/OlafvdSpek/ctemplate";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2010-09-28 09:33:42 +00:00
|
|
|
};
|
|
|
|
}
|