linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / cutelyst / default.nix
blob9f7d020feaf78dedc6b381ef47812c3368555b13
1 { stdenv, lib, fetchFromGitHub, cmake, pkg-config, wrapQtAppsHook
2 , qtbase, libuuid, libcap, uwsgi, grantlee, pcre
3 }:
5 stdenv.mkDerivation rec {
6   pname = "cutelyst";
7   version = "2.14.2";
9   src = fetchFromGitHub {
10     owner = "cutelyst";
11     repo = "cutelyst";
12     rev = "v${version}";
13     sha256 = "sha256-JUffOeUTeaZvEssP5hfSGipeRuQ7FzLF4bOizCFhe5o=";
14   };
16   nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
17   buildInputs = [ qtbase libuuid libcap uwsgi grantlee pcre ];
19   cmakeFlags = [
20     "-DPLUGIN_UWSGI=ON"
21     "-DPLUGIN_STATICCOMPRESSED=ON"
22     "-DPLUGIN_CSRFPROTECTION=ON"
23     "-DPLUGIN_VIEW_GRANTLEE=ON"
24   ];
26   preBuild = ''
27     export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/Cutelyst:`pwd`/EventLoopEPoll"
28   '';
30   postBuild = ''
31     unset LD_LIBRARY_PATH
32   '';
34   meta = with lib; {
35     description = "C++ Web Framework built on top of Qt";
36     homepage = "https://cutelyst.org/";
37     license = licenses.lgpl21Plus;
38     maintainers = with maintainers; [ fpletz ];
39   };