drogon: cleanup
This commit is contained in:
parent
ee9d28cf66
commit
b98b88fa49
|
@ -1,7 +1,7 @@
|
||||||
{ stdenv, fetchFromGitHub, cmake, jsoncpp, libossp_uuid, zlib, openssl, lib
|
{ stdenv, fetchFromGitHub, cmake, jsoncpp, libossp_uuid, zlib, lib
|
||||||
# miscellaneous
|
# optional but of negligible size
|
||||||
, brotli, c-ares
|
, openssl, brotli, c-ares
|
||||||
# databases
|
# optional databases
|
||||||
, sqliteSupport ? true, sqlite
|
, sqliteSupport ? true, sqlite
|
||||||
, postgresSupport ? false, postgresql
|
, postgresSupport ? false, postgresql
|
||||||
, redisSupport ? false, hiredis
|
, redisSupport ? false, hiredis
|
||||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||||
version = "1.7.1";
|
version = "1.7.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "an-tao";
|
owner = "drogonframework";
|
||||||
repo = "drogon";
|
repo = "drogon";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0rhwbz3m5x3vy5zllfs8r347wqprg29pff5q7i53f25bh8y0n49i";
|
sha256 = "0rhwbz3m5x3vy5zllfs8r347wqprg29pff5q7i53f25bh8y0n49i";
|
||||||
|
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
|
||||||
] ++ lib.optional sqliteSupport sqlite
|
] ++ lib.optional sqliteSupport sqlite
|
||||||
++ lib.optional postgresSupport postgresql
|
++ lib.optional postgresSupport postgresql
|
||||||
++ lib.optional redisSupport hiredis
|
++ lib.optional redisSupport hiredis
|
||||||
# drogon uses mariadb for mysql (see https://github.com/an-tao/drogon/wiki/ENG-02-Installation#Library-Dependencies)
|
# drogon uses mariadb for mysql (see https://github.com/drogonframework/drogon/wiki/ENG-02-Installation#Library-Dependencies)
|
||||||
++ lib.optional mysqlSupport [ libmysqlclient mariadb ];
|
++ lib.optional mysqlSupport [ libmysqlclient mariadb ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -48,17 +48,16 @@ stdenv.mkDerivation rec {
|
||||||
# modifying PATH here makes drogon_ctl visible to the test
|
# modifying PATH here makes drogon_ctl visible to the test
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
cd ..
|
cd ..
|
||||||
patchShebangs test.sh
|
PATH=$PATH:$out/bin bash test.sh
|
||||||
PATH=$PATH:$out/bin ./test.sh
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/an-tao/drogon";
|
homepage = "https://github.com/drogonframework/drogon";
|
||||||
description = "C++14/17 based HTTP web application framework";
|
description = "C++14/17 based HTTP web application framework";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.urlordjames ];
|
maintainers = with maintainers; [ urlordjames ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue