2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, qtbase, libuuid, libcap, uwsgi, grantlee, pcre
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cutelyst";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "2.14.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cutelyst";
|
|
|
|
repo = "cutelyst";
|
|
|
|
rev = "v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-RidUZqDnzRrgW/7LVF+BF01zNcf1cJ/kS7OF/t1Q65c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ qtbase libuuid libcap uwsgi grantlee pcre ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DPLUGIN_UWSGI=ON"
|
|
|
|
"-DPLUGIN_STATICCOMPRESSED=ON"
|
|
|
|
"-DPLUGIN_CSRFPROTECTION=ON"
|
|
|
|
"-DPLUGIN_VIEW_GRANTLEE=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/Cutelyst:`pwd`/EventLoopEPoll"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
unset LD_LIBRARY_PATH
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "C++ Web Framework built on top of Qt";
|
|
|
|
homepage = "https://cutelyst.org/";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|