2017-02-08 10:38:53 -08:00
|
|
|
{ stdenv, fetchurl, python2 }:
|
2010-09-28 02:33:42 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "ctemplate";
|
2014-12-21 20:26:17 -08:00
|
|
|
|
|
|
|
version = "2.3";
|
|
|
|
|
2016-09-16 22:44:12 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/OlafvdSpek/ctemplate/archive/ctemplate-${version}.tar.gz";
|
|
|
|
sha256 = "0mi5g2xlws10z1g4x0cj6kd1r673kkav35pgzyqxa1w47xnwprcr";
|
2014-12-21 20:26:17 -08:00
|
|
|
};
|
|
|
|
|
2017-02-08 10:38:53 -08:00
|
|
|
buildInputs = [ python2 ];
|
2014-12-21 20:26:17 -08:00
|
|
|
|
2015-01-08 01:26:49 -08:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2010-09-28 02:33:42 -07: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-21 20:26:17 -08:00
|
|
|
embed application logic in this template language.
|
|
|
|
'';
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/OlafvdSpek/ctemplate";
|
2017-10-26 16:44:19 -07:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2010-09-28 02:33:42 -07:00
|
|
|
};
|
|
|
|
}
|