1 { lib, stdenv, fetchurl, cmake }:
3 stdenv.mkDerivation rec {
8 url = "http://ctpp.havoc.ru/download/${pname}-${version}.tar.gz";
9 sha256 = "1z22zfw9lb86z4hcan9hlvji49c9b7vznh7gjm95gnvsh43zsgx8";
12 nativeBuildInputs = [ cmake ];
15 # include <unistd.h> to fix undefined getcwd
16 sed -ie 's/<stdlib.h>/<stdlib.h>\n#include <unistd.h>/' src/CTPP2FileSourceLoader.cpp
19 doCheck = false; # fails
22 description = "A high performance templating engine";
23 homepage = "http://ctpp.havoc.ru";
24 maintainers = [ maintainers.robbinch ];
25 platforms = platforms.linux;
26 license = licenses.bsd2;