1{ lib
2, stdenv
3, fetchFromGitHub
4, fetchpatch
5, autoreconfHook
6, cxxtools
7, zlib
8, openssl
9, zip
10}:
11
12stdenv.mkDerivation rec {
13 pname = "tntnet";
14 version = "3.0";
15
16 src = fetchFromGitHub {
17 owner = "maekitalo";
18 repo = "tntnet";
19 rev = "V${version}";
20 hash = "sha256-ujVPOreCGCFlYHa19yCIiZ0ed+p0jnS14DHDwKYvtc0=";
21 };
22
23 patches = [
24 (fetchpatch {
25 url = "https://github.com/maekitalo/tntnet/commit/69adfc8ee351a0e82990c1ffa7af6dab726e1e49.patch";
26 hash = "sha256-4UdUXKQiIa9CPlGg8XmfKQ8NTWb2A3AiuPthzEthlf8=";
27 })
28 ];
29
30 nativeBuildInputs = [
31 autoreconfHook
32 ];
33
34 buildInputs = [
35 cxxtools
36 zlib
37 openssl
38 zip
39 ];
40
41 enableParallelBuilding = true;
42
43 meta = with lib; {
44 homepage = "http://www.tntnet.org/tntnet.html";
45 description = "Web server which allows users to develop web applications using C++";
46 platforms = platforms.linux;
47 license = licenses.lgpl21;
48 maintainers = [ maintainers.juliendehos ];
49 };
50}