2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, openssl, curl, postgresql, yajl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kore";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "4.2.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jorisvink";
|
|
|
|
repo = pname;
|
2020-12-09 12:39:15 +00:00
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-p0M2P02xwww5EnT28VnEtj5b+/jkPW3YkJMuK79vp4k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
buildInputs = [ openssl curl postgresql yajl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"ACME=1"
|
|
|
|
"CURL=1"
|
|
|
|
"TASKS=1"
|
|
|
|
"PGSQL=1"
|
|
|
|
"JSONRPC=1"
|
|
|
|
"DEBUG=1"
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
make platform.h
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString ([
|
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
] ++ lib.optionals stdenv.cc.isGNU [
|
|
|
|
"-Wno-error=pointer-compare"
|
|
|
|
"-Wno-error=discarded-qualifiers"
|
|
|
|
] ++ lib.optionals stdenv.cc.isClang [
|
|
|
|
"-Wno-error=incompatible-pointer-types-discards-qualifiers"
|
|
|
|
]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An easy to use web application framework for C";
|
|
|
|
homepage = "https://kore.io";
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ johnmh ];
|
|
|
|
};
|
|
|
|
}
|