a4fd2de975
GitOrigin-RevId: 34ad166a830d3ac1541dcce571c52231f2f0865a
40 lines
1,017 B
Nix
40 lines
1,017 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, wrapQtAppsHook
|
|
, qtbase, libuuid, libcap, uwsgi, grantlee, pcre
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cutelyst";
|
|
version = "2.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cutelyst";
|
|
repo = "cutelyst";
|
|
rev = "v${version}";
|
|
sha256 = "1xbw8ag3iwm69dhrsg54anrlzvvflj6pwsj42z6hrl0yckabn99z";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig wrapQtAppsHook ];
|
|
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 ];
|
|
};
|
|
}
|