mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 07:48:58 +00:00
cutelyst: init at 2.4.1
Co-authored-by: Maximilian Bosch <maximilian@mbosch.me> Co-authored-by: elseym <elseym@me.com>
This commit is contained in:
parent
09c66f4045
commit
5d534c2663
45
pkgs/development/libraries/cutelyst/default.nix
Normal file
45
pkgs/development/libraries/cutelyst/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, makeWrapper
|
||||
, qtbase, libuuid, libcap, uwsgi, grantlee }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cutelyst-${version}";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cutelyst";
|
||||
repo = "cutelyst";
|
||||
rev = "v${version}";
|
||||
sha256 = "1kfapd5dkyw02g3j4gshxl16b90xdf5vgfhqrkdzix072f7hy5sl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
||||
buildInputs = [ qtbase libuuid libcap uwsgi grantlee ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DPLUGIN_UWSGI=ON"
|
||||
"-DPLUGIN_STATICCOMPRESSED=ON"
|
||||
"-DPLUGIN_CSRFPROTECTION=ON"
|
||||
"-DPLUGIN_VIEW_GRANTLEE=ON"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`pwd`/Cutelyst:`pwd`/EventLoopEPoll"
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
unset LD_LIBRARY_PATH
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
for prog in $out/bin/*; do
|
||||
wrapProgram "$prog" --set QT_PLUGIN_PATH '${qtbase}/${qtbase.qtPluginPrefix}'
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "C++ Web Framework built on top of Qt";
|
||||
homepage = https://cutelyst.org/;
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ fpletz ];
|
||||
};
|
||||
}
|
|
@ -8884,6 +8884,8 @@ with pkgs;
|
|||
|
||||
cutee = callPackage ../development/libraries/cutee { };
|
||||
|
||||
cutelyst = libsForQt5.callPackage ../development/libraries/cutelyst { };
|
||||
|
||||
cxxtools = callPackage ../development/libraries/cxxtools { };
|
||||
|
||||
cwiid = callPackage ../development/libraries/cwiid { };
|
||||
|
|
Loading…
Reference in a new issue