depot/third_party/nixpkgs/pkgs/development/web/kore/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

49 lines
1.1 KiB
Nix

{ 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 ];
};
}