blob: 9105afa52071e9ac7bbb6a7fbc45da2be203f79d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ lib, stdenv, fetchFromGitHub, openssl, curl, postgresql, yajl }:
stdenv.mkDerivation rec {
pname = "kore";
version = "4.2.3";
src = fetchFromGitHub {
owner = "jorisvink";
repo = pname;
rev = version;
sha256 = "sha256-p0M2P02xwww5EnT28VnEtj5b+/jkPW3YkJMuK79vp4k=";
};
buildInputs = [ openssl curl postgresql yajl ];
makeFlags = [
"PREFIX=${placeholder "out"}"
"ACME=1"
"CURL=1"
"TASKS=1"
"PGSQL=1"
"JSONRPC=1"
"DEBUG=1"
];
preBuild = ''
make platform.h
'';
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"
]);
enableParallelBuilding = true;
meta = with lib; {
description = "Easy to use web application framework for C";
homepage = "https://kore.io";
license = licenses.isc;
platforms = platforms.all;
maintainers = with maintainers; [ johnmh ];
};
}
|