Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 49 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, openssl, curl, postgresql, yajl }: 2 3 4stdenv.mkDerivation rec { 5 pname = "kore"; 6 version = "4.2.3"; 7 8 src = fetchFromGitHub { 9 owner = "jorisvink"; 10 repo = pname; 11 rev = version; 12 sha256 = "sha256-p0M2P02xwww5EnT28VnEtj5b+/jkPW3YkJMuK79vp4k="; 13 }; 14 15 buildInputs = [ openssl curl postgresql yajl ]; 16 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 ]; 26 27 preBuild = '' 28 make platform.h 29 ''; 30 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 ]); 39 40 enableParallelBuilding = true; 41 42 meta = with lib; { 43 description = "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 }; 49}