uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/development/libraries/cutelyst/default.nix
Normal file
49
pkgs/development/libraries/cutelyst/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, wrapQtAppsHook
|
||||
, qtbase, libuuid, libcap, uwsgi, grantlee, pcre
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cutelyst";
|
||||
version = "2.14.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cutelyst";
|
||||
repo = "cutelyst";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-JUffOeUTeaZvEssP5hfSGipeRuQ7FzLF4bOizCFhe5o=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
||||
buildInputs = [
|
||||
qtbase
|
||||
grantlee
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
libuuid
|
||||
libcap
|
||||
uwsgi
|
||||
pcre
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DPLUGIN_UWSGI=${if stdenv.isLinux then "ON" else "OFF"}" # Missing uwsgi symbols on Darwin
|
||||
"-DPLUGIN_STATICCOMPRESSED=ON"
|
||||
"-DPLUGIN_CSRFPROTECTION=ON"
|
||||
"-DPLUGIN_VIEW_GRANTLEE=ON"
|
||||
];
|
||||
|
||||
preBuild = lib.optionalString stdenv.isLinux ''
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/Cutelyst:`pwd`/EventLoopEPoll"
|
||||
'';
|
||||
|
||||
postBuild = lib.optionalString stdenv.isLinux ''
|
||||
unset LD_LIBRARY_PATH
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "C++ Web Framework built on top of Qt";
|
||||
homepage = "https://cutelyst.org/";
|
||||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ fpletz ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue