2017-02-08 18:38:53 +00:00
|
|
|
{ stdenv, fetchurl, python2 }:
|
2010-09-28 09:33:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-12-22 04:26:17 +00:00
|
|
|
name = "ctemplate-${version}";
|
|
|
|
|
|
|
|
version = "2.3";
|
|
|
|
|
2016-09-17 05:44:12 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/OlafvdSpek/ctemplate/archive/ctemplate-${version}.tar.gz";
|
|
|
|
sha256 = "0mi5g2xlws10z1g4x0cj6kd1r673kkav35pgzyqxa1w47xnwprcr";
|
2014-12-22 04:26:17 +00:00
|
|
|
};
|
|
|
|
|
2017-02-08 18:38:53 +00:00
|
|
|
buildInputs = [ python2 ];
|
2014-12-22 04:26:17 +00:00
|
|
|
|
2015-01-08 09:26:49 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
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.
|
|
|
|
'';
|
2017-10-26 23:44:19 +00:00
|
|
|
homepage = https://github.com/OlafvdSpek/ctemplate;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2010-09-28 09:33:42 +00:00
|
|
|
};
|
|
|
|
}
|