at 23.11-beta 43 lines 1.0 kB view raw
1{ lib, stdenv, fetchFromGitHub, openssl, curl, postgresql, yajl }: 2 3stdenv.mkDerivation rec { 4 pname = "kore"; 5 version = "4.2.3"; 6 7 src = fetchFromGitHub { 8 owner = "jorisvink"; 9 repo = pname; 10 rev = version; 11 sha256 = "sha256-p0M2P02xwww5EnT28VnEtj5b+/jkPW3YkJMuK79vp4k="; 12 }; 13 14 buildInputs = [ openssl curl postgresql yajl ]; 15 16 makeFlags = [ 17 "PREFIX=${placeholder "out"}" 18 "ACME=1" 19 "CURL=1" 20 "TASKS=1" 21 "PGSQL=1" 22 "JSONRPC=1" 23 "DEBUG=1" 24 ]; 25 26 preBuild = '' 27 make platform.h 28 ''; 29 30 # added to fix build w/gcc7 and clang5 31 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=pointer-compare" 32 + lib.optionalString stdenv.cc.isClang " -Wno-error=unknown-warning-option"; 33 34 enableParallelBuilding = true; 35 36 meta = with lib; { 37 description = "An easy to use web application framework for C"; 38 homepage = "https://kore.io"; 39 license = licenses.isc; 40 platforms = platforms.all; 41 maintainers = with maintainers; [ johnmh ]; 42 }; 43}