2020-12-09 12:39:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, openssl, curl, postgresql, yajl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kore";
|
2020-12-09 12:39:15 +00:00
|
|
|
version = "4.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jorisvink";
|
|
|
|
repo = pname;
|
2020-12-09 12:39:15 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0186lih30zps2d4600ikafbgsml269jzpcszdggzzkdw8p628qw9";
|
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
|
|
|
|
|
|
|
# added to fix build w/gcc7 and clang5
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=pointer-compare"
|
|
|
|
+ stdenv.lib.optionalString stdenv.cc.isClang " -Wno-error=unknown-warning-option";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An easy to use web application framework for C";
|
|
|
|
homepage = "https://kore.io";
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ johnmh ];
|
|
|
|
};
|
|
|
|
}
|