Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / web / kore / default.nix
blob13caf0e781fc314130ccdc8bf19eb3fb139a9827
1 { lib, stdenv, fetchFromGitHub, openssl, curl, postgresql, yajl }:
4 stdenv.mkDerivation rec {
5   pname = "kore";
6   version = "4.2.3";
8   src = fetchFromGitHub {
9     owner = "jorisvink";
10     repo = pname;
11     rev = version;
12     sha256 = "sha256-p0M2P02xwww5EnT28VnEtj5b+/jkPW3YkJMuK79vp4k=";
13   };
15   buildInputs = [ openssl curl postgresql yajl ];
17   makeFlags = [
18     "PREFIX=${placeholder "out"}"
19     "ACME=1"
20     "CURL=1"
21     "TASKS=1"
22     "PGSQL=1"
23     "JSONRPC=1"
24     "DEBUG=1"
25   ];
27   preBuild = ''
28     make platform.h
29   '';
31   env.NIX_CFLAGS_COMPILE = toString ([
32     "-Wno-error=deprecated-declarations"
33   ] ++ lib.optionals stdenv.cc.isGNU [
34     "-Wno-error=pointer-compare"
35     "-Wno-error=discarded-qualifiers"
36   ] ++ lib.optionals stdenv.cc.isClang [
37     "-Wno-error=incompatible-pointer-types-discards-qualifiers"
38   ]);
40   enableParallelBuilding = true;
42   meta = with lib; {
43     description = "An easy to use web application framework for C";
44     homepage = "https://kore.io";
45     license = licenses.isc;
46     platforms = platforms.all;
47     maintainers = with maintainers; [ johnmh ];
48   };