2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, wrapQtAppsHook
|
2019-01-04 12:52:47 +00:00
|
|
|
, qtbase, libuuid, libcap, uwsgi, grantlee, pcre
|
|
|
|
}:
|
2018-06-26 00:03:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cutelyst";
|
2021-01-21 14:25:34 +00:00
|
|
|
version = "2.14.2";
|
2018-06-26 00:03:56 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cutelyst";
|
|
|
|
repo = "cutelyst";
|
|
|
|
rev = "v${version}";
|
2021-01-21 14:25:34 +00:00
|
|
|
sha256 = "sha256-JUffOeUTeaZvEssP5hfSGipeRuQ7FzLF4bOizCFhe5o=";
|
2018-06-26 00:03:56 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
2019-01-04 12:52:47 +00:00
|
|
|
buildInputs = [ qtbase libuuid libcap uwsgi grantlee pcre ];
|
2018-06-26 00:03:56 +01:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DPLUGIN_UWSGI=ON"
|
|
|
|
"-DPLUGIN_STATICCOMPRESSED=ON"
|
|
|
|
"-DPLUGIN_CSRFPROTECTION=ON"
|
|
|
|
"-DPLUGIN_VIEW_GRANTLEE=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
2020-01-02 00:29:34 +00:00
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/Cutelyst:`pwd`/EventLoopEPoll"
|
2018-06-26 00:03:56 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
unset LD_LIBRARY_PATH
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "C++ Web Framework built on top of Qt";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://cutelyst.org/";
|
2018-06-26 00:03:56 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|