2017-02-08 18:38:53 +00:00
|
|
|
{ stdenv, fetchurl, python2 }:
|
2010-09-28 10:33:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-12-22 04:26:17 +00:00
|
|
|
name = "ctemplate-${version}";
|
|
|
|
|
|
|
|
version = "2.3";
|
|
|
|
|
2016-09-17 06:44:12 +01: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 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.
|
|
|
|
'';
|
2010-09-28 10:33:42 +01:00
|
|
|
homepage = http://code.google.com/p/google-ctemplate/;
|
|
|
|
license = "bsd";
|
|
|
|
};
|
|
|
|
}
|